GetPlayerEquippedWeapon
From Onset Developer Wiki
Description
Get the specified player's equiped weapon Id.
Syntax
GetPlayerEquippedWeapon(player)
Parameters
- player
The player identifier.
Return Value
- This function returns the weapon ID.
Example
if GetPlayerEquippedWeapon(playerId) == 21 then
print("Player has equipped a taser.")
end