class Mobile
package fivem.client.natives
Static methods
staticCellCamMoveFinger(direction:Int):Dynamic
Moves the character's finger in a swiping motion when holding a cellphone in their hand through the use of the CREATE_MOBILE_PHONE native.
enum eCellInput {
CELL_INPUT_NONE = 0,
CELL_INPUT_UP = 1,
CELL_INPUT_DOWN = 2,
CELL_INPUT_LEFT = 3,
CELL_INPUT_RIGHT = 4,
CELL_INPUT_SELECT = 5
}staticCellCamSetDistance(p0:Float):Dynamic
staticCellCamSetHeadHeight(p0:Float):Dynamic
staticCellCamSetHeadPitch(p0:Float):Dynamic
staticCellCamSetHeadRoll(p0:Float):Dynamic
staticCellCamSetHorizontalOffset(p0:Float):Dynamic
staticCellCamSetLean(toggle:Bool):Dynamic
if the bool "Toggle" is "true" so the phone is lean.
if the bool "Toggle" is "false" so the phone is not lean. staticCellCamSetRoll(p0:Float):Dynamic
staticCellCamSetVerticalOffset(p0:Float):Dynamic
staticcanPhoneBeSeenOnScreen():Bool
This one is weird and seems to return a TRUE state regardless of whether the phone is visible on screen or tucked away.
I can confirm the above. This function is hard-coded to always return 1. staticcellCamActivate(active:Bool, bGoFirstPerson:Bool):Dynamic
Activates the cellphone camera. Make sure you have a mobile phone created with CREATE_MOBILE_PHONE or else the camera will not work.
staticcellCamActivateSelfieMode(toggle:Bool):Dynamic
Toggles the selfie mode on the cellphone camera. Only visible when the cell phone camera is active.
staticcellCamIsCharVisibleNoFaceCheck(entity:Dynamic):Bool
staticcreateMobilePhone(phoneType:Int):Dynamic
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. staticgetMobilePhonePosition(position:Dynamic):Dynamic
staticgetMobilePhoneRenderId(renderId:Dynamic):Dynamic
staticgetMobilePhoneRotation(rotation:Dynamic, p1:Dynamic):Dynamic
staticscriptIsMovingMobilePhoneOffscreen(toggle:Bool):Dynamic
If bool Toggle = true so the mobile is hide to screen.
If bool Toggle = false so the mobile is show to screen. staticsetMobilePhonePosition(posX:Float, posY:Float, posZ:Float):Dynamic
staticsetMobilePhoneRotation(rotX:Float, rotY:Float, rotZ:Float, p3:Dynamic):Dynamic
Last parameter is unknown and always zero. staticsetMobilePhoneScale(scale:Float):Dynamic
The minimum/default is 500.0f. If you plan to make it bigger set it's position as well. Also this seems to need to be called in a loop as when you close the phone the scale is reset. If not in a loop you'd need to call it everytime before you re-open the phone.