Перейти к содержанию

Gameplay::setGamePaused

Материал из RAGE MP Wiki Archive

Make sure to call this from the correct thread if you're using multiple threads because all other threads except the one which is calling SET_GAME_PAUSED will be paused which means you will lose control and the game remains in paused mode until you exit GTA5.exe

Syntax

<syntaxhighlight lang="javascript">mp.game.gameplay.setGamePaused(toggle);</syntaxhighlight>

Required Arguments

  • toggle: Boolean

Return value

  • Undefined

Example

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also