Mobile::scriptIsMovingMobilePhoneOffscreen: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
m (Added Example and removed therefor useless explanation at start)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
If bool Toggle = true so the mobile is hide to screen.<br>If bool Toggle = false so the mobile is show to screen.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">mobile.scriptIsMovingMobilePhoneOffscreen(toggle);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.mobile.scriptIsMovingMobilePhoneOffscreen(toggle);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''toggle:''' Boolean
*'''toggle:''' Boolean
===Return value===
===Return value===
*'''Undefined'''
*'''void'''
==Example==
==Example==
<syntaxhighlight lang="javascript">
 
todo
If the bool '''toggle''' is set to ''false'' the mobile will be shown.
</syntaxhighlight>
{{ClientsideCode|
<pre>
mp.game.mobile.scriptIsMovingMobilePhoneOffscreen(false);
</pre>
}}
<br>
If the bool '''toggle''' is set to ''true'' the mobile will be hidden from screen.
{{ClientsideCode|
<pre>
mp.game.mobile.scriptIsMovingMobilePhoneOffscreen(true);
</pre>
}}
 
==See also==
==See also==
{{Mobile_function_c}}
{{Mobile_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]

Latest revision as of 18:49, 4 January 2021

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