ScriptClientBlocked

setScriptWithNameHashAsNoLongerNeeded

SET_SCRIPT_WITH_NAME_HASH_AS_NO_LONGER_NEEDED0xC5BC038960E9DB27

The GTA V native SET_SCRIPT_WITH_NAME_HASH_AS_NO_LONGER_NEEDED of the SCRIPT namespace, as LS:MP client scripts call it: the global function setScriptWithNameHashAsNoLongerNeeded, in JavaScript and in Lua.

SignatureJavaScript
setScriptWithNameHashAsNoLongerNeeded(scriptHash: Hash): void
SignatureLua
setScriptWithNameHashAsNoLongerNeeded(scriptHash: Hash)
✕
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_WITH_NAME_HASH_AS_NO_LONGER_NEEDED(Hash scriptHash)
Hash
0xC5BC038960E9DB27
Formerly
_SET_STREAMED_SCRIPT_AS_NO_LONGER_NEEDED

Open in the interactive natives reference