deleteObject
DELETE_OBJECT0x539E0AE3E6634B9FThe 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.
deleteObject(object: Object): voiddeleteObject(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
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
object | Object | number | integer |
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