Skip to main content

System::startNewScriptWithArgs

return : script thread id, 0 if failed Pass pointer to struct of args in p1, size of struct goes into p2

Syntax

```js mp.game.system.startNewScriptWithArgs(scriptName, args, argCount, stackSize); ```

Required Arguments

  • scriptName: String
  • args: unknown (to be checked)
  • argCount: int
  • stackSize: int

Return value

  • int

Example

```js // todo ```

See also