The Lab
ENTITY native

SET_ENTITY_MAX_HEALTH

returns void2 paramsbuild 1207

Sets the maximum health of the entity.

Signature

C
void SET_ENTITY_MAX_HEALTH(Entity entity, int value); // 0x166E7CF68597D8B5 b1207

Parameters

#NameType
1entityEntity
2valueint

Facts

Facts about SET_ENTITY_MAX_HEALTH
Name
SET_ENTITY_MAX_HEALTH
Hash
0x166E7CF68597D8B5
Namespace
Returns
void
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
Citizen.InvokeNative(0x166E7CF68597D8B5, -- SET_ENTITY_MAX_HEALTH
  PlayerPedId(), -- Entity entity
  0 -- int value
)
JavaScript
Citizen.invokeNative("0x166E7CF68597D8B5", // SET_ENTITY_MAX_HEALTH
  PlayerPedId(), // Entity entity
  0 // int value
);
C#
Function.Call((Hash)0x166E7CF68597D8B5, // SET_ENTITY_MAX_HEALTH
  API.PlayerPedId(), // Entity entity
  0 // int value
);
All ENTITY natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.