Gameplay::disableHospitalRestart: Difference between revisions
(yay) |
(yay) |
||
| Line 1: | Line 1: | ||
The game by default has 5 hospital respawn points. Disabling them all will cause the player to respawn at the last position they were.<br><br>- mlgthatsme<br><br>---------------------<br><br>Doesn't work.... | The game by default has 5 hospital respawn points. Disabling them all will cause the player to respawn at the last position they were.<br><br>- mlgthatsme<br><br>---------------------<br><br>Doesn't work.... | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript">gameplay.disableHospitalRestart(hospitalIndex, toggle);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.game.gameplay.disableHospitalRestart(hospitalIndex, toggle);</syntaxhighlight> | ||
=== Required Arguments === | === Required Arguments === | ||
*'''hospitalIndex:''' int | *'''hospitalIndex:''' 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:12, 6 May 2017
The game by default has 5 hospital respawn points. Disabling them all will cause the player to respawn at the last position they were.
- mlgthatsme
---------------------
Doesn't work....
Syntax
mp.game.gameplay.disableHospitalRestart(hospitalIndex, toggle);
Required Arguments
- hospitalIndex: int
- toggle: Boolean
Return value
- Undefined
Example
// todo