startNewScriptWithArgs
START_NEW_SCRIPT_WITH_ARGS0xB8BA7F44DF1575E1The GTA V native START_NEW_SCRIPT_WITH_ARGS of the BUILTIN namespace, as LS:MP client scripts call it: the global function startNewScriptWithArgs, in JavaScript and in Lua.
startNewScriptWithArgs(
scriptName: string,
args: null,
argCount: number,
stackSize: number
): numberstartNewScriptWithArgs(
scriptName: string,
args: nil,
argCount: integer,
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_ARGS(const char* scriptName, Any* args, int argCount, int stackSize)- Hash
0xB8BA7F44DF1575E1