Skip to content

function unequipItem (client-side)

Available since version: 0.1.10


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.


bool unequipItem(int id, int itemId)


  • int id: the player id.
  • int itemId: the item id to unequip from player.

Returns bool

true if item was successfully unequipped, otherwise false.