Gameplay::disablePoliceRestart: Difference between revisions
(yay) |
(yay) |
||
| Line 1: | Line 1: | ||
Disables the spawn point at the police house on the specified index.<br><br>policeIndex: The police house index.<br>toggle: true to enable the spawn point, false to disable.<br><br>- Nacorpio | Disables the spawn point at the police house on the specified index.<br><br>policeIndex: The police house index.<br>toggle: true to enable the spawn point, false to disable.<br><br>- Nacorpio | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript">gameplay.disablePoliceRestart(policeIndex, toggle);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.game.gameplay.disablePoliceRestart(policeIndex, toggle);</syntaxhighlight> | ||
=== Required Arguments === | === Required Arguments === | ||
*'''policeIndex:''' int | *'''policeIndex:''' int | ||
| Line 9: | Line 9: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
todo | // todo | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See also== | ==See also== | ||
{{ | {{Gameplay_s_function_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:TODO: Example]] | [[Category:TODO: Example]] | ||
Revision as of 21:06, 6 May 2017
Disables the spawn point at the police house on the specified index.
policeIndex: The police house index.
toggle: true to enable the spawn point, false to disable.
- Nacorpio
Syntax
mp.game.gameplay.disablePoliceRestart(policeIndex, toggle);
Required Arguments
- policeIndex: int
- toggle: Boolean
Return value
- Undefined
Example
// todo