NPC:GetPlayerArmedWeapon

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search

RoboN1X (Talk | contribs)
(a_npc uses different naming for this function)
Next diff →

Current revision



Description:

Same as GetPlayerWeapon, but to be used in NPC scripts


Parameters:
(playerid)
playeridThe 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.