Gameplay::disablePoliceRestart: Difference between revisions

From RAGE Multiplayer Wiki
(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_function_c}}
{{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

See also

Template:Gameplay s function c