startNewScript
START_NEW_SCRIPT0xE81651AD79516E48The 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.
startNewScript(scriptName: string, stackSize: number): numberstartNewScript(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