Mobile::createMobilePhone: Difference between revisions
(yay) |
(yay) |
||
| Line 1: | Line 1: | ||
Creates a mobile phone of the specified type.<br><br>Possible phone types:<br><br>0 - Default phone / Michael's phone<br>1 - Trevor's phone<br>2 - Franklin's phone<br>4 - Prologue phone<br><br>These values represent bit flags, so a value of '3' would toggle Trevor and Franklin's phones together, causing unexpected behavior and most likely crash the game. | Creates a mobile phone of the specified type.<br><br>Possible phone types:<br><br>0 - Default phone / Michael's phone<br>1 - Trevor's phone<br>2 - Franklin's phone<br>4 - Prologue phone<br><br>These values represent bit flags, so a value of '3' would toggle Trevor and Franklin's phones together, causing unexpected behavior and most likely crash the game. | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript">mobile.createMobilePhone(phoneType);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.game.mobile.createMobilePhone(phoneType);</syntaxhighlight> | ||
=== Required Arguments === | === Required Arguments === | ||
*'''phoneType:''' int | *'''phoneType:''' int | ||
| Line 8: | Line 8: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
todo | // todo | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See also== | ==See also== | ||
{{ | {{Mobile_s_function_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:TODO: Example]] | [[Category:TODO: Example]] | ||
Revision as of 21:27, 6 May 2017
Creates a mobile phone of the specified type.
Possible phone types:
0 - Default phone / Michael's phone
1 - Trevor's phone
2 - Franklin's phone
4 - Prologue phone
These values represent bit flags, so a value of '3' would toggle Trevor and Franklin's phones together, causing unexpected behavior and most likely crash the game.
Syntax
mp.game.mobile.createMobilePhone(phoneType);
Required Arguments
- phoneType: int
Return value
- Undefined
Example
// todo
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