DELETE_ENTITY
Deletes the entity and clears the handle.
The script must own the entity, so call SET_ENTITY_AS_MISSION_ENTITY first for world entities.
Signature
void DELETE_ENTITY(Entity* entity); // 0x4CD38C78BD19A497 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity* (out pointer) |
Facts
| Name | DELETE_ENTITY |
|---|---|
| Hash | 0x4CD38C78BD19A497 |
| 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(0x4CD38C78BD19A497, -- DELETE_ENTITY
Citizen.PointerValueInt() -- Entity* entity
)
print(entity)const entity = Citizen.invokeNative("0x4CD38C78BD19A497", // DELETE_ENTITY
Citizen.pointerValueInt() // Entity* entity
);
console.log(entity)var entityArg = new OutputArgument();
Function.Call((Hash)0x4CD38C78BD19A497, // DELETE_ENTITY
entityArg // Entity* entity
);
int entity = entityArg.GetResult<int>();Related ENTITY natives
- _DELETE_ENTITY_2
- _GET_LAST_ENTITY_TO_DAMAGE_ENTITY
- ATTACH_ENTITY_TO_ENTITY
- ATTACH_ENTITY_TO_ENTITY_PHYSICALLY
- CLEAR_ENTITY_LAST_DAMAGE_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
- IS_ENTITY_TOUCHING_ENTITY
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.