RedM Natives

SET_OBJECT_AS_NO_LONGER_NEEDED

This is an alias of SET_ENTITY_AS_NO_LONGER_NEEDED.

Hash0x3AE22DEB5BA5A3E6
Runtime nameSetObjectAsNoLongerNeeded
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x3AE22DEB5BA5A3E6

Signature

void SET_OBJECT_AS_NO_LONGER_NEEDED(Object* object);

Parameters

NameTypeDescription
objectObject*—

Returns void

Description

This is an alias of SET_ENTITY_AS_NO_LONGER_NEEDED.

Usage

Lua
local object = SetObjectAsNoLongerNeeded(object)

-- always works, by hash
local object = Citizen.InvokeNative(0x3AE22DEB5BA5A3E6, Citizen.PointerValueIntInitialized(object))
JavaScript and C#
JavaScript
const object = SetObjectAsNoLongerNeeded(object);

// by hash
const object = Citizen.invokeNative('0x3AE22DEB5BA5A3E6', Citizen.pointerValueIntInitialized(object));
C#
var object = new OutputArgument();
Function.Call((Hash)0x3AE22DEB5BA5A3E6, object);
// object.GetResult<int>()
  • The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.