Built-inClientBlocked

startNewScript

START_NEW_SCRIPT0xE81651AD79516E48

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

SignatureJavaScript
startNewScript(scriptName: string, stackSize: number): number
SignatureLua
startNewScript(scriptName: string, 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(const char* scriptName, int stackSize)
Hash
0xE81651AD79516E48

Open in the interactive natives reference