isPedShooting
IS_PED_SHOOTING0x34616828CD07F1A1The GTA V native IS_PED_SHOOTING of the PED namespace, as LS:MP client scripts call it: the global function isPedShooting, in JavaScript and in Lua.
isPedShooting(ped: Ped): booleanisPedShooting(ped: Ped): booleanUsage
JavaScript
const result = isPedShooting(ped);Lua
local result = isPedShooting(ped)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Returns whether the specified ped is shooting.
Reference
- Namespace
- Ped PED
- In the game
BOOL IS_PED_SHOOTING(Ped ped)- Hash
0x34616828CD07F1A1