Skip to content

function equipItem (client-side)

Available since version: 0.1.10

This function is used to equip item on hero/npc.


bool equipItem(int id, int itemId, int slotId = -1)


  • int id: the player id.
  • int itemId: the item id to equip on player.
  • int slotId: the slot id in which you want to equip item on player, e.g scrolls, runes, by default the item will be equipped on the first free slot.

Returns bool

toggle true if item was successfully equipped, otherwise false.