IsPlayerWeaponDrawn
Whether a player has a weapon drawn.
true while the player’s game says a weapon is out and ready - a sword drawn, a bow readied; raised fists do not count.
Syntax
Section titled “Syntax”IsPlayerWeaponDrawn(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”boolean - true with a weapon drawn; false sheathed or not connected
Example
Section titled “Example”if IsPlayerWeaponDrawn(pid) then SendClientMessage(pid, COLOR_RED, "The guard eyes your drawn weapon.") endSee also
Section titled “See also”GetPlayerHandItems · GetPlayerWeapon · the Combat group of the index
