event
onPlayerEquipHandItem (server-side)
Available since version: 0.0.1
This event is triggered when game adds item to player hand, e.g: when player opens or consumes any item. When item is removed from hand -1 item id is returned instead.
Parameters
int playerid, int hand, int itemId
int
playerid: the id of the player who gets an item to his hand.int
hand: the id of the hand in which player holds item. For more information see Hand constants.int
itemId: the id of the item.