RedM Natives

DELETE_OBJECT

Deletes the specified object, then sets the handle pointed to by the pointer to NULL.

Hash0x931914268722C263
Runtime nameDeleteObject
NamespaceOBJECT
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x539E0AE3E6634B9F

Signature

void DELETE_OBJECT(Object* object);

Parameters

NameTypeDescription
objectObject*—

Returns void

Description

Deletes the specified object, then sets the handle pointed to by the pointer to NULL.

Usage

Lua
local object = DeleteObject(object)

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

// by hash
const object = Citizen.invokeNative('0x931914268722C263', Citizen.pointerValueIntInitialized(object));
C#
var object = new OutputArgument();
Function.Call((Hash)0x931914268722C263, 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.