EntityClient

setObjectAsNoLongerNeeded

SET_OBJECT_AS_NO_LONGER_NEEDED0x3AE22DEB5BA5A3E6

The GTA V native SET_OBJECT_AS_NO_LONGER_NEEDED of the ENTITY namespace, as LS:MP client scripts call it: the global function setObjectAsNoLongerNeeded, in JavaScript and in Lua.

SignatureJavaScript
setObjectAsNoLongerNeeded(object: Object): void
SignatureLua
setObjectAsNoLongerNeeded(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
setObjectAsNoLongerNeeded(object);
Lua
setObjectAsNoLongerNeeded(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.

This is an alias of setEntityAsNoLongerNeeded.

Reference

Namespace
Entity ENTITY
In the game
void SET_OBJECT_AS_NO_LONGER_NEEDED(Object* object)
Hash
0x3AE22DEB5BA5A3E6

Open in the interactive natives reference