_DELETE_ENTITY_2
Alternative variant that deletes the entity and clears the handle.
Signature
void _DELETE_ENTITY_2(Entity* entity); // 0x5E94EA09E7207C16 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity* (out pointer) |
Facts
| Name | _DELETE_ENTITY_2 |
|---|---|
| Hash | 0x5E94EA09E7207C16 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local entity = Citizen.InvokeNative(0x5E94EA09E7207C16, -- _DELETE_ENTITY_2
Citizen.PointerValueInt() -- Entity* entity
)
print(entity)const entity = Citizen.invokeNative("0x5E94EA09E7207C16", // _DELETE_ENTITY_2
Citizen.pointerValueInt() // Entity* entity
);
console.log(entity)var entityArg = new OutputArgument();
Function.Call((Hash)0x5E94EA09E7207C16, // _DELETE_ENTITY_2
entityArg // Entity* entity
);
int entity = entityArg.GetResult<int>();Related ENTITY natives
- _GET_LAST_ENTITY_TO_DAMAGE_ENTITY
- _DELETE_CARRIABLE
- ATTACH_ENTITY_TO_ENTITY
- ATTACH_ENTITY_TO_ENTITY_PHYSICALLY
- CLEAR_ENTITY_LAST_DAMAGE_ENTITY
- DELETE_ENTITY
- HAS_ENTITY_BEEN_DAMAGED_BY_ENTITY
- HAS_ENTITY_CLEAR_LOS_TO_ENTITY
- HAS_ENTITY_CLEAR_LOS_TO_ENTITY_IN_FRONT
- IS_ENTITY_A_MISSION_ENTITY
- IS_ENTITY_AT_ENTITY
- IS_ENTITY_ATTACHED_TO_ENTITY
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.