# ENTITY::SET_ENTITY_INVINCIBLE

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

## Signature

```c
void SET_ENTITY_INVINCIBLE(Entity entity, BOOL toggle);
```

## Parameters

- `entity` (`Entity`)
- `toggle` (`BOOL`)

## Returns

`void`

## Description

Sets a ped or an object totally invincible. It doesn't take any kind of damage. Peds will not ragdoll on explosions.

## Usage

### Lua

```lua
SetEntityInvincible(entity, toggle)

-- always available, by hash
Citizen.InvokeNative(0xA5C38736C426FCB8, entity, toggle)
```

### JavaScript

```js
SetEntityInvincible(entity, toggle);

// by hash
Citizen.invokeNative('0xA5C38736C426FCB8', entity, toggle);
```

### C#

```csharp
Function.Call((Hash)0xA5C38736C426FCB8, entity, toggle);
```

*Sources: alloc8or RDR3 NativeDB.*
