ObjectClient

deleteObject

DELETE_OBJECT0x539E0AE3E6634B9F

The GTA V native DELETE_OBJECT of the OBJECT namespace, as LS:MP client scripts call it: the global function deleteObject, in JavaScript and in Lua.

SignatureJavaScript
deleteObject(object: Object): void
SignatureLua
deleteObject(object: Object)
⚠
Known issue

The value of object does not reach the game yet: LS:MP currently treats this pointer as an output, so the game receives an empty value instead of yours.

Usage

JavaScript
deleteObject(object);
Lua
deleteObject(object)

Parameters

ParameterTypeJavaScriptLua
objectObjectnumberinteger

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

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

Reference

Namespace
Object OBJECT
In the game
void DELETE_OBJECT(Object* object)
Hash
0x539E0AE3E6634B9F

Open in the interactive natives reference