Mobile::scriptIsMovingMobilePhoneOffscreen
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);