Author Topic: Function Called On Use Bricks  (Read 396 times)

When ever a client opens his/her brick inventory, and switchs to a brick - how can I detect what brick he/she has currently clicked (server sided.)
Like lets say my brick inventory is


|1x1|2x2|3x2|5x5|  |  |  |etc.
if the player scrolls from 1x1 to 2x2, how can i detect when he/she has switched and what he/she has switched to.
Help would be great.

i think serverCmdUseInventory(%client, %slot) and %client.inventory[%slot].