Mobile::createMobilePhone: Difference between revisions
MrPancakers (talk | contribs) No edit summary |
mNo edit summary |
||
| Line 8: | Line 8: | ||
* 2 - Franklin's phone | * 2 - Franklin's phone | ||
* 4 - Prologue phone | * 4 - Prologue phone | ||
* 5 - Old Phone | |||
'''INFO''' | '''INFO''' | ||
Latest revision as of 18:58, 19 May 2020
Client-Side Function
Creates a mobile phone of the specified type. This will also put a phone in the players hand as well.
Phone Types:
- 0 - Default phone / Michael's phone
- 1 - Trevor's phone
- 2 - Franklin's phone
- 4 - Prologue phone
- 5 - Old Phone
INFO
- 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
Creates a mobile phone in the center of your screen when you press F7.
Client-Side
mp.keys.bind(0x76, true, function() { // F7
mp.game.mobile.createMobilePhone(0);
mp.game.mobile.setMobilePhoneScale(300);
mp.gui.chat.push('Mobile Created');
});
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