RedM Natives

SET_ENTITY_INVINCIBLE

Sets a ped or an object totally invincible.

Hash0xA5C38736C426FCB8
Runtime nameSetEntityInvincible
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x3882114BDE571AD4

Signature

void SET_ENTITY_INVINCIBLE(Entity entity, BOOL toggle);

Parameters

NameTypeDescription
entityEntity—
toggleBOOL—

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
SetEntityInvincible(entity, toggle)

-- always works, by hash
Citizen.InvokeNative(0xA5C38736C426FCB8, entity, toggle)
JavaScript and C#
JavaScript
SetEntityInvincible(entity, toggle);

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

Sources

alloc8or RDR3 NativeDB

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