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

Mobile::scriptIsMovingMobilePhoneOffscreen

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

Syntax

<syntaxhighlight lang="javascript">mp.game.mobile.scriptIsMovingMobilePhoneOffscreen(toggle);</syntaxhighlight>

Required Arguments

  • toggle: Boolean

Return value

  • void

Example

If the bool toggle is set to false the mobile will be shown.

Client-Side
mp.game.mobile.scriptIsMovingMobilePhoneOffscreen(false);


If the bool toggle is set to true the mobile will be hidden from screen.

Client-Side
mp.game.mobile.scriptIsMovingMobilePhoneOffscreen(true);

See also