function unequipItem (client-side)
Available since version: 0.3.9.0
Note
If you want to unequip weapon/shield, first make sure that player is in WEAPONMODE_NONE.
This function is used to unequip item from player/npc.
Declaration
bool unequipItem(int id, Item item)
Parameters
intid: the player id.Itemitem: the item object. For more information see Item class.
Returns bool
true if item was successfully unequipped, otherwise false.