SET_OBJECT_AS_NO_LONGER_NEEDED
Releases the object so the game can clean it up when appropriate.
Signature
void SET_OBJECT_AS_NO_LONGER_NEEDED(Object* object); // 0x3AE22DEB5BA5A3E6 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | object | Object* (out pointer) |
Facts
| Name | SET_OBJECT_AS_NO_LONGER_NEEDED |
|---|---|
| Hash | 0x3AE22DEB5BA5A3E6 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local objectOut = Citizen.InvokeNative(0x3AE22DEB5BA5A3E6, -- SET_OBJECT_AS_NO_LONGER_NEEDED
Citizen.PointerValueInt() -- Object* object
)
print(objectOut)const objectOut = Citizen.invokeNative("0x3AE22DEB5BA5A3E6", // SET_OBJECT_AS_NO_LONGER_NEEDED
Citizen.pointerValueInt() // Object* object
);
console.log(objectOut)var objectOutArg = new OutputArgument();
Function.Call((Hash)0x3AE22DEB5BA5A3E6, // SET_OBJECT_AS_NO_LONGER_NEEDED
objectOutArg // Object* object
);
int objectOut = objectOutArg.GetResult<int>();Related ENTITY natives
- SET_ENTITY_AS_NO_LONGER_NEEDED
- SET_PED_AS_NO_LONGER_NEEDED
- SET_VEHICLE_AS_NO_LONGER_NEEDED
- SET_ENTITY_AS_MISSION_ENTITY
- SET_ENTITY_COORDS_NO_OFFSET
- SET_ENTITY_NO_COLLISION_ENTITY
- _SET_ENTITY_COORDS_AND_HEADING_NO_OFFSET
- SET_CAN_AUTO_VAULT_ON_ENTITY
- SET_CAN_CLIMB_ON_ENTITY
- SET_ENTITY_ALPHA
- SET_ENTITY_ALWAYS_PRERENDER
- SET_ENTITY_CAN_BE_DAMAGED
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.