The Lab
ENTITY native

SET_ENTITY_HEALTH

returns void3 paramsbuild 1207

Sets the health of the entity, optionally attributing a kill to entityKilledBy.

Signature

C
void SET_ENTITY_HEALTH(Entity entity, int healthAmount, Entity entityKilledBy); // 0xAC2767ED8BDFAB15 b1207

Parameters

#NameType
1entityEntity
2healthAmountint
3entityKilledByEntity

Facts

Facts about SET_ENTITY_HEALTH
Name
SET_ENTITY_HEALTH
Hash
0xAC2767ED8BDFAB15
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(0xAC2767ED8BDFAB15, -- SET_ENTITY_HEALTH
  PlayerPedId(), -- Entity entity
  0, -- int healthAmount
  PlayerPedId() -- Entity entityKilledBy
)
JavaScript
Citizen.invokeNative("0xAC2767ED8BDFAB15", // SET_ENTITY_HEALTH
  PlayerPedId(), // Entity entity
  0, // int healthAmount
  PlayerPedId() // Entity entityKilledBy
);
C#
Function.Call((Hash)0xAC2767ED8BDFAB15, // SET_ENTITY_HEALTH
  API.PlayerPedId(), // Entity entity
  0, // int healthAmount
  API.PlayerPedId() // Entity entityKilledBy
);
All ENTITY natives

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