isPedDeadOrDying
IS_PED_DEAD_OR_DYING0x3317DEDB88C95038The GTA V native IS_PED_DEAD_OR_DYING of the PED namespace, as LS:MP client scripts call it: the global function isPedDeadOrDying, in JavaScript and in Lua.
isPedDeadOrDying(ped: Ped, checkMeleeDeathFlags: boolean): booleanisPedDeadOrDying(ped: Ped, checkMeleeDeathFlags: boolean): booleanUsage
JavaScript
const result = isPedDeadOrDying(ped, checkMeleeDeathFlags);Lua
local result = isPedDeadOrDying(ped, checkMeleeDeathFlags)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
ped | Ped | number | integer |
checkMeleeDeathFlags | BOOL | boolean | boolean |
Returns
BOOL JavaScript boolean, Lua booleanReference
- Namespace
- Ped PED
- In the game
BOOL IS_PED_DEAD_OR_DYING(Ped ped, BOOL checkMeleeDeathFlags)- Hash
0x3317DEDB88C95038