SET_ENTITY_INVINCIBLE
Makes the entity invincible or vulnerable.
Signature
void SET_ENTITY_INVINCIBLE(Entity entity, BOOL toggle); // 0xA5C38736C426FCB8 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity |
| 2 | toggle | BOOL |
Facts
| Name | SET_ENTITY_INVINCIBLE |
|---|---|
| Hash | 0xA5C38736C426FCB8 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0xA5C38736C426FCB8, -- SET_ENTITY_INVINCIBLE
PlayerPedId(), -- Entity entity
false -- BOOL toggle
)Citizen.invokeNative("0xA5C38736C426FCB8", // SET_ENTITY_INVINCIBLE
PlayerPedId(), // Entity entity
false // BOOL toggle
);Function.Call((Hash)0xA5C38736C426FCB8, // SET_ENTITY_INVINCIBLE
API.PlayerPedId(), // Entity entity
false // BOOL toggle
);Related ENTITY natives
- SET_ENTITY_AS_MISSION_ENTITY
- SET_ENTITY_NO_COLLISION_ENTITY
- SET_ENTITY_IS_TARGET_PRIORITY
- SET_ENTITY_ALPHA
- SET_ENTITY_ALWAYS_PRERENDER
- SET_ENTITY_AS_NO_LONGER_NEEDED
- SET_ENTITY_CAN_BE_DAMAGED
- SET_ENTITY_CAN_BE_DAMAGED_BY_RELATIONSHIP_GROUP
- SET_ENTITY_CAN_BE_TARGETED_WITHOUT_LOS
- SET_ENTITY_COLLISION
- SET_ENTITY_COMPLETELY_DISABLE_COLLISION
- SET_ENTITY_COORDS
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.