isPedInjured
IS_PED_INJURED0x84A2DD9AC37C35C1The GTA V native IS_PED_INJURED of the PED namespace, as LS:MP client scripts call it: the global function isPedInjured, in JavaScript and in Lua.
isPedInjured(ped: Ped): booleanisPedInjured(ped: Ped): booleanUsage
JavaScript
const result = isPedInjured(ped);Lua
local result = isPedInjured(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 injured threshold.
The default threshold is 100.
Reference
- Namespace
- Ped PED
- In the game
BOOL IS_PED_INJURED(Ped ped)- Hash
0x84A2DD9AC37C35C1