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

Mobile::scriptIsMovingMobilePhoneOffscreen

Материал из RAGE MP Wiki Archive
Версия от 18:49, 4 января 2021; imported>Muffin2Go (Added Example and removed therefor useless explanation at start)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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