Skip to content

function equipMeleeWeapon (client-side)

Deprecated since version: 0.1.10

This function is used to equip melee weapon on hero/npc.


bool equipMeleeWeapon(int id, int itemId)


  • int id: the player id.
  • int itemId: the melee weapon itemId to equip on player.

Returns bool

true if item was successfully equipped, otherwise null.