Mobile::getMobilePhonePosition
Revision as of 00:26, 23 January 2019 by MrPancakers (talk | contribs)
Contents
Client-Side Function
Returns the position of the phone created.
Syntax
mp.game.mobile.getMobilePhonePosition(position);
Required Arguments
- position: Vector3
Return value
- Object
Example
Client-Side
mp.keys.bind(0x77, true, function() { // F8
let mpos = mp.game.mobile.getMobilePhonePosition(new mp.Vector3(0,0,0));
mp.gui.chat.push(`Mobile Pos: ${JSON.stringify(mpos)}`);
});
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