Built-inClientBlocked

startNewScriptWithNameHash

START_NEW_SCRIPT_WITH_NAME_HASH0xEB1C67C3A5333A92

The GTA V native START_NEW_SCRIPT_WITH_NAME_HASH of the BUILTIN namespace, as LS:MP client scripts call it: the global function startNewScriptWithNameHash, in JavaScript and in Lua.

SignatureJavaScript
startNewScriptWithNameHash(scriptHash: Hash, stackSize: number): number
SignatureLua
startNewScriptWithNameHash(scriptHash: Hash, stackSize: integer): integer
✕
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
Built-in BUILTIN
In the game
int START_NEW_SCRIPT_WITH_NAME_HASH(Hash scriptHash, int stackSize)
Hash
0xEB1C67C3A5333A92
Formerly
_START_NEW_STREAMED_SCRIPT

Open in the interactive natives reference