Mobile::scriptIsMovingMobilePhoneOffscreen

From RAGE Multiplayer Wiki
Revision as of 18:49, 4 January 2021 by Muffin2Go (talk | contribs) (Added Example and removed therefor useless explanation at start)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Syntax

mp.game.mobile.scriptIsMovingMobilePhoneOffscreen(toggle);

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