The Lab
ENTITY native

SET_ENTITY_AS_NO_LONGER_NEEDED

returns void1 parambuild 1207

Releases the entity so the game can clean it up when appropriate.

Signature

C
void SET_ENTITY_AS_NO_LONGER_NEEDED(Entity* entity); // 0x4971D2F8162B9674 b1207

Parameters

#NameType
1entityEntity* (out pointer)

Facts

Facts about SET_ENTITY_AS_NO_LONGER_NEEDED
Name
SET_ENTITY_AS_NO_LONGER_NEEDED
Hash
0x4971D2F8162B9674
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(0x4971D2F8162B9674, -- SET_ENTITY_AS_NO_LONGER_NEEDED
  Citizen.PointerValueInt() -- Entity* entity
)
print(entity)
JavaScript
const entity = Citizen.invokeNative("0x4971D2F8162B9674", // SET_ENTITY_AS_NO_LONGER_NEEDED
  Citizen.pointerValueInt() // Entity* entity
);
console.log(entity)
C#
var entityArg = new OutputArgument();
Function.Call((Hash)0x4971D2F8162B9674, // SET_ENTITY_AS_NO_LONGER_NEEDED
  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.