ENTITY

SET_ENTITY_INVINCIBLE

0x3882114BDE571AD4 Jenkins: 0xC1213A21

Signature

// ENTITY
void SET_ENTITY_INVINCIBLE(Entity entity, BOOL toggle)

Parameters

Type Name
Entity entity
BOOL toggle

Return type void

Build 323

Documentation

Sets a ped or an object totally invincible. It doesn't take any kind of damage. Peds will not ragdoll on explosions and the tazer animation won't apply either. If you use this for a ped and you want Ragdoll to stay enabled, then do: *(DWORD *)(pedAddress + 0x188) |= (1 << 9); Use this if you want to get the invincibility status: bool IsPedInvincible(Ped ped) { auto addr = getScriptHandleBaseAddress(ped); if (addr) { DWORD flag = *(DWORD *)(addr + 0x188); return ((flag & (1 << 8)) != 0) || ((flag & (1 << 9)) != 0); } return false; }

APPI RP

Join us on FiveM

Semi-Serious GTA V roleplay on APPI RolePlay — hop into Discord for rules and onboarding, then follow the guide when you're ready to connect.