PedClient

isPedDeadOrDying

IS_PED_DEAD_OR_DYING0x3317DEDB88C95038

The 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.

SignatureJavaScript
isPedDeadOrDying(ped: Ped, checkMeleeDeathFlags: boolean): boolean
SignatureLua
isPedDeadOrDying(ped: Ped, checkMeleeDeathFlags: boolean): boolean

Usage

JavaScript
const result = isPedDeadOrDying(ped, checkMeleeDeathFlags);
Lua
local result = isPedDeadOrDying(ped, checkMeleeDeathFlags)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger
checkMeleeDeathFlagsBOOLbooleanboolean

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Ped PED
In the game
BOOL IS_PED_DEAD_OR_DYING(Ped ped, BOOL checkMeleeDeathFlags)
Hash
0x3317DEDB88C95038

Open in the interactive natives reference