PedClient

isPedFatallyInjured

IS_PED_FATALLY_INJURED0xD839450756ED5A80

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

SignatureJavaScript
isPedFatallyInjured(ped: Ped): boolean
SignatureLua
isPedFatallyInjured(ped: Ped): boolean

Usage

JavaScript
const result = isPedFatallyInjured(ped);
Lua
local result = isPedFatallyInjured(ped)

Parameters

ParameterTypeJavaScriptLua
pedPednumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

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

Open in the interactive natives reference