# ENTITY::SET_ENTITY_HEALTH

- **Hash:** `0xAC2767ED8BDFAB15`
- **Namespace:** ENTITY
- **Runtime name (Lua/JS):** `SetEntityHealth`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/ENTITY/SET_ENTITY_HEALTH

## Signature

```c
void SET_ENTITY_HEALTH(Entity entity, int healthAmount, Entity entityKilledBy);
```

## Parameters

- `entity` (`Entity`)
- `healthAmount` (`int`)
- `entityKilledBy` (`Entity`)

## Returns

`void`

## Description

Sets the entity's health. healthAmount sets the health value to that, and sets the maximum health core value. Setting healthAmount to 0 will kill the entity. entityKilledBy parameter can also be 0

## Usage

### Lua

```lua
SetEntityHealth(entity, healthAmount, entityKilledBy)

-- always available, by hash
Citizen.InvokeNative(0xAC2767ED8BDFAB15, entity, healthAmount, entityKilledBy)
```

### JavaScript

```js
SetEntityHealth(entity, healthAmount, entityKilledBy);

// by hash
Citizen.invokeNative('0xAC2767ED8BDFAB15', entity, healthAmount, entityKilledBy);
```

### C#

```csharp
Function.Call((Hash)0xAC2767ED8BDFAB15, entity, healthAmount, entityKilledBy);
```

## See also

- [ENTITY::GET_ENTITY_HEALTH](https://natives.borderlinerp.com/natives/ENTITY/GET_ENTITY_HEALTH.md)
- [ENTITY::_CHANGE_ENTITY_HEALTH](https://natives.borderlinerp.com/natives/ENTITY/_CHANGE_ENTITY_HEALTH.md) — Alters entity's health by 'amount'.

*Sources: alloc8or RDR3 NativeDB.*
