The Lab
ENTITY native

DELETE_ENTITY

returns void1 parambuild 1207

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

C
void DELETE_ENTITY(Entity* entity); // 0x4CD38C78BD19A497 b1207

Parameters

#NameType
1entityEntity* (out pointer)

Facts

Facts about DELETE_ENTITY
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.

Lua
local entity = Citizen.InvokeNative(0x4CD38C78BD19A497, -- DELETE_ENTITY
  Citizen.PointerValueInt() -- Entity* entity
)
print(entity)
JavaScript
const entity = Citizen.invokeNative("0x4CD38C78BD19A497", // DELETE_ENTITY
  Citizen.pointerValueInt() // Entity* entity
);
console.log(entity)
C#
var entityArg = new OutputArgument();
Function.Call((Hash)0x4CD38C78BD19A497, // DELETE_ENTITY
  entityArg // Entity* entity
);
int entity = entityArg.GetResult<int>();
All ENTITY natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.