GetPlayerEquippedWeapon: Difference between revisions

From Onset Developer Wiki
28days (talk | contribs)
No edit summary
28days (talk | contribs)
No edit summary
Line 15: Line 15:
     print("Player has equipped a taser.")
     print("Player has equipped a taser.")
end
end
<syntaxhighlight>
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
{{PlayerFunctions}}
{{PlayerFunctions}}

Revision as of 19:37, 31 December 2019

GetPlayerEquippedWeapon

Type: Function
Context: Server
Introduced: v1.0

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

See also

Template:PlayerFunctions