PedClient

isPedHurt

IS_PED_HURT0x5983BB449D7FDB12

The GTA V native IS_PED_HURT of the PED namespace, as LS:MP client scripts call it: the global function isPedHurt, in JavaScript and in Lua.

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

Usage

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

Returns whether the specified ped is hurt.

Reference

Namespace
Ped PED
In the game
BOOL IS_PED_HURT(Ped ped)
Hash
0x5983BB449D7FDB12

Open in the interactive natives reference