Skip to content

function getPlayerMeleeWeapon (client-side)

Available since version: 0.0.1

This function will get the equipped player/npc melee weapon.

Declaration

int getPlayerMeleeWeapon(int id)

Parameters

  • int id: the player id.

Returns int

itemId the id of equipped melee weapon.