WeaponClient

isPedWeaponReadyToShoot

IS_PED_WEAPON_READY_TO_SHOOT0xB80CA294F2F26749

The GTA V native IS_PED_WEAPON_READY_TO_SHOOT of the WEAPON namespace, as LS:MP client scripts call it: the global function isPedWeaponReadyToShoot, in JavaScript and in Lua.

SignatureJavaScript
isPedWeaponReadyToShoot(ped: Ped): boolean
SignatureLua
isPedWeaponReadyToShoot(ped: Ped): boolean

Usage

JavaScript
const result = isPedWeaponReadyToShoot(ped);
Lua
local result = isPedWeaponReadyToShoot(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Weapon WEAPON
In the game
BOOL IS_PED_WEAPON_READY_TO_SHOOT(Ped ped)
Hash
0xB80CA294F2F26749

Open in the interactive natives reference