isPedFatallyInjured
IS_PED_FATALLY_INJURED0xD839450756ED5A80The GTA V native IS_PED_FATALLY_INJURED of the PED namespace, as LS:MP client scripts call it: the global function isPedFatallyInjured, in JavaScript and in Lua.
isPedFatallyInjured(ped: Ped): booleanisPedFatallyInjured(ped: Ped): booleanUsage
JavaScript
const result = isPedFatallyInjured(ped);Lua
local result = isPedFatallyInjured(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.
Gets a value indicating whether this ped's health is below its fatally injured threshold. The default threshold is 100.
If the handle is invalid, the function returns true.
Reference
- Namespace
- Ped PED
- In the game
BOOL IS_PED_FATALLY_INJURED(Ped ped)- Hash
0xD839450756ED5A80