GetPlayerEquippedWeapon

From Onset Developer Wiki
Revision as of 14:50, 26 June 2021 by FlyingFork (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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