RedM Natives

SET_ENTITY_MAX_HEALTH

Hash0x166E7CF68597D8B5
Runtime nameSetEntityMaxHealth
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x166E7CF68597D8B5

Signature

void SET_ENTITY_MAX_HEALTH(Entity entity, int value);

Parameters

NameTypeDescription
entityEntity—
valueint—

Returns void

Usage

Lua
SetEntityMaxHealth(entity, value)

-- always works, by hash
Citizen.InvokeNative(0x166E7CF68597D8B5, entity, value)
JavaScript and C#
JavaScript
SetEntityMaxHealth(entity, value);

// by hash
Citizen.invokeNative('0x166E7CF68597D8B5', entity, value);
C#
Function.Call((Hash)0x166E7CF68597D8B5, entity, value);

See also

Sources

alloc8or RDR3 NativeDB

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