Mobile::cellCamActivate
Revision as of 00:21, 23 January 2019 by MrPancakers (talk | contribs)
Contents
Client-Side Function
Enables the camera view from your phone
NOTE: This does not enable taking photos, this is only the VIEW.
Syntax
mp.game.mobile.cellCamActivate(enable, p1);
Required Arguments
- enable: Boolean
- p1: Boolean
Return value
- Undefined
Example
Up arrow to enable the camera, down arrow to disable the camera
Client-Side
mp.keys.bind(0x28, true, function() { // Down Arrow
mp.game.mobile.cellCamActivate(false, false);
});
mp.keys.bind(0x26, true, function() { // Up Arrow
mp.game.mobile.cellCamActivate(true, 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