GetPlayerArmedWeapon

From NPC for VCMP 0.4 Servers
Revision as of 15:27, 24 March 2022 by Habi (talk | contribs) (Created page with "{{Welcome| desc=Gets the ID of the weapon the player is currently holding.| params=<source lang="lua">playerid</source> <poem>::playerid : The ID of the player whose current w...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Description:
Gets the ID of the weapon the player is currently holding.


Parameters:

playerid

playerid : The ID of the player whose current weapon ID you want to get.


Return Values:
The ID of the weapon, the player is currently holding. Returns -1 if the specified player does not exist.