ScriptClientBlocked

requestScriptWithNameHash

REQUEST_SCRIPT_WITH_NAME_HASH0xD62A67D26D9653E6

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

SignatureJavaScript
requestScriptWithNameHash(scriptHash: Hash): void
SignatureLua
requestScriptWithNameHash(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 REQUEST_SCRIPT_WITH_NAME_HASH(Hash scriptHash)
Hash
0xD62A67D26D9653E6
Formerly
_REQUEST_STREAMED_SCRIPT

Open in the interactive natives reference