Skip to content

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.

IsPlayerWeaponDrawn(pid)
Parameter Type
pid number the player

boolean - true with a weapon drawn; false sheathed or not connected

if IsPlayerWeaponDrawn(pid) then SendClientMessage(pid, COLOR_RED, "The guard eyes your drawn weapon.") end

GetPlayerHandItems · GetPlayerWeapon · the Combat group of the index