Built-inClientBlocked

startNewScriptWithNameHashAndArgs

START_NEW_SCRIPT_WITH_NAME_HASH_AND_ARGS0xC4BB298BD441BE78

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

SignatureJavaScript
startNewScriptWithNameHashAndArgs(
  scriptHash: Hash,
  args: null,
  argCount: number,
  stackSize: number
): number
SignatureLua
startNewScriptWithNameHashAndArgs(
  scriptHash: Hash,
  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_NAME_HASH_AND_ARGS(Hash scriptHash, Any* args, int argCount, int stackSize)
Hash
0xC4BB298BD441BE78
Formerly
_START_NEW_STREAMED_SCRIPT_WITH_ARGS

Open in the interactive natives reference