The Lab
ENTITY native

_DELETE_ENTITY_2

returns void1 parambuild 1207

Alternative variant that deletes the entity and clears the handle.

Signature

C
void _DELETE_ENTITY_2(Entity* entity); // 0x5E94EA09E7207C16 b1207

Parameters

#NameType
1entityEntity* (out pointer)

Facts

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

Lua
local entity = Citizen.InvokeNative(0x5E94EA09E7207C16, -- _DELETE_ENTITY_2
  Citizen.PointerValueInt() -- Entity* entity
)
print(entity)
JavaScript
const entity = Citizen.invokeNative("0x5E94EA09E7207C16", // _DELETE_ENTITY_2
  Citizen.pointerValueInt() // Entity* entity
);
console.log(entity)
C#
var entityArg = new OutputArgument();
Function.Call((Hash)0x5E94EA09E7207C16, // _DELETE_ENTITY_2
  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.