Skip to content

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

  • int id: the player id.
  • Item item: the item object. For more information see Item class.

Returns bool

true if item was successfully unequipped, otherwise false.