SET_ENTITY_AS_NO_LONGER_NEEDED
Releases the entity so the game can clean it up when appropriate.
Signature
void SET_ENTITY_AS_NO_LONGER_NEEDED(Entity* entity); // 0x4971D2F8162B9674 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | entity | Entity* (out pointer) |
Facts
| 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.
local entity = Citizen.InvokeNative(0x4971D2F8162B9674, -- SET_ENTITY_AS_NO_LONGER_NEEDED
Citizen.PointerValueInt() -- Entity* entity
)
print(entity)const entity = Citizen.invokeNative("0x4971D2F8162B9674", // SET_ENTITY_AS_NO_LONGER_NEEDED
Citizen.pointerValueInt() // Entity* entity
);
console.log(entity)var entityArg = new OutputArgument();
Function.Call((Hash)0x4971D2F8162B9674, // SET_ENTITY_AS_NO_LONGER_NEEDED
entityArg // Entity* entity
);
int entity = entityArg.GetResult<int>();Related ENTITY natives
- SET_ENTITY_AS_MISSION_ENTITY
- SET_OBJECT_AS_NO_LONGER_NEEDED
- SET_PED_AS_NO_LONGER_NEEDED
- SET_VEHICLE_AS_NO_LONGER_NEEDED
- SET_ENTITY_NO_COLLISION_ENTITY
- SET_ENTITY_COORDS_NO_OFFSET
- SET_ENTITY_ALPHA
- SET_ENTITY_ALWAYS_PRERENDER
- SET_ENTITY_CAN_BE_DAMAGED
- SET_ENTITY_CAN_BE_DAMAGED_BY_RELATIONSHIP_GROUP
- SET_ENTITY_CAN_BE_TARGETED_WITHOUT_LOS
- SET_ENTITY_COLLISION
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.