RedM Natives

GET_ENTITY_HEALTH

Hash0x82368787EA73C0F7
Runtime nameGetEntityHealth
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0xEEF059FAD016D209

Signature

int GET_ENTITY_HEALTH(Entity entity);

Parameters

NameTypeDescription
entityEntity—

Returns int

Usage

Lua
local retval = GetEntityHealth(entity)

-- always works, by hash
local retval = Citizen.InvokeNative(0x82368787EA73C0F7, entity, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetEntityHealth(entity);

// by hash
const retval = Citizen.invokeNative('0x82368787EA73C0F7', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x82368787EA73C0F7, entity);

See also

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.