NPC:GetPlayerArmedWeapon
From SA-MP Wiki
Description:
Same as GetPlayerWeapon, but to be used in NPC scripts
(playerid)
playerid | The ID of the player to get the currently held weapon of. |
Return Values:
The ID of the player's current weapon. Returns -1 if the player specified does not exist.