IS_PED_FATALLY_INJURED
Gets a value indicating whether this ped's health is below its fatally injured threshold.
Hash
0xD839450756ED5A80Runtime name
IsPedFatallyInjuredNamespacePED
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0xD839450756ED5A80Signature
BOOL IS_PED_FATALLY_INJURED(Ped ped);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
Returns BOOL
Description
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.
Usage
local retval = IsPedFatallyInjured(ped)
-- always works, by hash
local retval = Citizen.InvokeNative(0xD839450756ED5A80, ped, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsPedFatallyInjured(ped);
// by hash
const retval = Citizen.invokeNative('0xD839450756ED5A80', ped, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0xD839450756ED5A80, ped);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.