Mobile::scriptIsMovingMobilePhoneOffscreen: Difference between revisions
(yay) |
m (Added Example and removed therefor useless explanation at start) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
==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=== | ||
*''' | *'''void''' | ||
==Example== | ==Example== | ||
< | |||
If the bool '''toggle''' is set to ''false'' the mobile will be shown. | |||
</ | {{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_s_function_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
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
- mp.game.mobile.cellCamActivate
- mp.game.mobile.createMobilePhone
- mp.game.mobile.getMobilePhonePosition
- mp.game.mobile.getMobilePhoneRenderId
- mp.game.mobile.getMobilePhoneRotation
- mp.game.mobile.moveFinger
- mp.game.mobile.scriptIsMovingMobilePhoneOffscreen
- mp.game.mobile.setMobilePhonePosition
- mp.game.mobile.setMobilePhoneRotation
- mp.game.mobile.setMobilePhoneScale
- mp.game.mobile.setPhoneLean