PedClient

isPedInjured

IS_PED_INJURED0x84A2DD9AC37C35C1

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

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

Usage

JavaScript
const result = isPedInjured(ped);
Lua
local result = isPedInjured(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 injured threshold.

The default threshold is 100.

Reference

Namespace
Ped PED
In the game
BOOL IS_PED_INJURED(Ped ped)
Hash
0x84A2DD9AC37C35C1

Open in the interactive natives reference