setScriptAsNoLongerNeeded
SET_SCRIPT_AS_NO_LONGER_NEEDED0xC90D2DCACD56184CThe GTA V native SET_SCRIPT_AS_NO_LONGER_NEEDED of the SCRIPT namespace, as LS:MP client scripts call it: the global function setScriptAsNoLongerNeeded, in JavaScript and in Lua.
setScriptAsNoLongerNeeded(scriptName: string): voidsetScriptAsNoLongerNeeded(scriptName: string)✕
Blocked for scripts: Game script threads
Resources do not start, stop or adopt the game's own compiled scripts. Your code runs as an LS:MP resource.
Calling it raises disabled by LSMP script policy, which try / catch (JavaScript) or pcall (Lua) can intercept. Nothing reaches the game. See Blocked natives.
Reference
- Namespace
- Script SCRIPT
- In the game
void SET_SCRIPT_AS_NO_LONGER_NEEDED(const char* scriptName)- Hash
0xC90D2DCACD56184C