requestScriptWithNameHash
REQUEST_SCRIPT_WITH_NAME_HASH0xD62A67D26D9653E6The 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.
requestScriptWithNameHash(scriptHash: Hash): voidrequestScriptWithNameHash(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