System::startNewScriptWithArgs: Difference between revisions
(yay) |
(yay) |
||
| Line 1: | Line 1: | ||
return : script thread id, 0 if failed<br>Pass pointer to struct of args in p1, size of struct goes into p2 | return : script thread id, 0 if failed<br>Pass pointer to struct of args in p1, size of struct goes into p2 | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript">system.startNewScriptWithArgs(scriptName, args, argCount, stackSize);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.game.system.startNewScriptWithArgs(scriptName, args, argCount, stackSize);</syntaxhighlight> | ||
=== Required Arguments === | === Required Arguments === | ||
*'''scriptName:''' String | *'''scriptName:''' String | ||
| Line 11: | Line 11: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
todo | // todo | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See also== | ==See also== | ||
{{ | {{System_s_function_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:TODO: Example]] | [[Category:TODO: Example]] | ||
Latest revision as of 21:32, 6 May 2017
return : script thread id, 0 if failed
Pass pointer to struct of args in p1, size of struct goes into p2
Syntax
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
// todo