Client · JavaScript & Lua

GTA V Mobile phone natives (MOBILE)

The in-game phone prop: position, rotation, scale and camera.

The 25 natives of the game’s MOBILE namespace, as LS:MP client scripts call them: global functions with the same arguments in JavaScript and in Lua. Each one has its own page, with its signature, a call in both languages, its parameters and what it returns.

NativeGame nameHash
createMobilePhoneCREATE_MOBILE_PHONE0xA4E8E696C532FBC7
destroyMobilePhoneDESTROY_MOBILE_PHONE0x3BC861DF703E5097
setMobilePhoneScaleSET_MOBILE_PHONE_SCALE0xCBDD322A73D6D932
setMobilePhoneRotationSET_MOBILE_PHONE_ROTATION0xBB779C0CA917E865
getMobilePhoneRotationGET_MOBILE_PHONE_ROTATION0x1CEFB61F193070AE
setMobilePhonePositionSET_MOBILE_PHONE_POSITION0x693A5C6D6734085B
getMobilePhonePositionGET_MOBILE_PHONE_POSITION0x584FDFDA48805B86
scriptIsMovingMobilePhoneOffscreenSCRIPT_IS_MOVING_MOBILE_PHONE_OFFSCREEN0xF511F759238A5122
canPhoneBeSeenOnScreenCAN_PHONE_BE_SEEN_ON_SCREEN0xC4E2813898C97A4B
setMobilePhoneDofStateSET_MOBILE_PHONE_DOF_STATE0x375A706A5C2FD084
cellSetInputCELL_SET_INPUT0x95C9E72F3D7DEC9B
cellHorizontalModeToggleCELL_HORIZONTAL_MODE_TOGGLE0x44E44169EF70138E
cellCamActivateCELL_CAM_ACTIVATE0xFDE8F069C542D126
cellCamActivateSelfieModeCELL_CAM_ACTIVATE_SELFIE_MODE0x015C49A93E3E086E
cellCamActivateShallowDofModeCELL_CAM_ACTIVATE_SHALLOW_DOF_MODE0xA2CCBE62CD4C91A4
cellCamSetSelfieModeSideOffsetScalingCELL_CAM_SET_SELFIE_MODE_SIDE_OFFSET_SCALING0x1B0B4AEED5B9B41C
cellCamSetSelfieModeHorzPanOffsetCELL_CAM_SET_SELFIE_MODE_HORZ_PAN_OFFSET0x53F4892D18EC90A4
cellCamSetSelfieModeVertPanOffsetCELL_CAM_SET_SELFIE_MODE_VERT_PAN_OFFSET0x3117D84EFA60F77B
cellCamSetSelfieModeRollOffsetCELL_CAM_SET_SELFIE_MODE_ROLL_OFFSET0x15E69E2802C24B8D
cellCamSetSelfieModeDistanceScalingCELL_CAM_SET_SELFIE_MODE_DISTANCE_SCALING0xAC2890471901861C
cellCamSetSelfieModeHeadYawOffsetCELL_CAM_SET_SELFIE_MODE_HEAD_YAW_OFFSET0xD6ADE981781FCA09
cellCamSetSelfieModeHeadRollOffsetCELL_CAM_SET_SELFIE_MODE_HEAD_ROLL_OFFSET0xF1E22DC13F5EEBAD
cellCamSetSelfieModeHeadPitchOffsetCELL_CAM_SET_SELFIE_MODE_HEAD_PITCH_OFFSET0x466DA42C89865553
cellCamIsCharVisibleNoFaceCheckCELL_CAM_IS_CHAR_VISIBLE_NO_FACE_CHECK0x439E9BC95B7E7FBE
getMobilePhoneRenderIdGET_MOBILE_PHONE_RENDER_ID0xB4A53E05F68B6FA1

Other namespaces

Built-in25Script VM basics: timers, maths helpers, thread control.App data17Data blocks shared with the game's companion apps.Audio280Sounds, speech, music, radio, audio scenes and scripted conversations.Script brains11Script brains attached to objects, peds and world points.Camera248Scripted cameras, the gameplay camera, shakes, cinematic and hint cameras.Clock16In-game time and date, and the real-world clock.Cutscenes56Loading, playing and controlling cutscenes.Data files57Cloud data files and their dictionary and array structures.Decorators12Typed key/value decorators attached to entities.DLC14Presence and state of downloadable content.Entity189Anything placed in the world: position, rotation, health, attachment, collision, visibility.Events13AI and shocking events: adding, blocking and suppressing them.Shop metadata49Shop items, outfits, tattoos and weapon data declared by DLC metadata.Fire19Script fires and explosions.Graphics403Drawing: markers, lines, sprites, lights, particle effects, scaleform movies, timecycles and screen effects.HUD518Text, help and notifications, blips and the minimap, pause-menu and frontend components.IIS1The initial interactive screen shown when the game starts.Interior45Interiors, rooms and entity sets.Item sets9Script-side collections of entities and other items.Landing page4The game's landing page.Lobby8Legacy lobby state of the game's own multiplayer menu.Localization3Language and region of the game.Misc345Everything without a better home: weather, ground and area checks, maths, hashing, strings, game flow.Money357The game's online economy: earn and spend records, balances.Net shopping42The game's online catalog, baskets and transactions.Network883The game's own network layer: sessions, players, network ids, entity control, cloud content.Object166Props: creation, doors, pickups, breakable and animated objects.Controls50Player input: reading and disabling control actions, vibration, look inversion.Pathfinding60Road nodes, the navigation mesh and GPS routes.Ped614Characters: creation, appearance, health, groups, relationships, ragdoll, config flags.Physics49Ropes, and the physics state of entities.Player250The local player: wanted level, abilities, targeting, control, model, invincibility.Recording17Rockstar Editor recording control.Replay6Rockstar Editor replay and clip state.Save migration8Transfer of a saved game between platforms and accounts.Script38Game script threads and script events.Security3Tamper protection of script variables.Shape tests11Raycasts and the other world probes.Social Club84Social Club inbox, profanity checks, licence plates and presence.Stats338Player statistics, leaderboards and telemetry.Streaming121Loading assets: models, animation and texture dictionaries, particle assets, IPLs, focus.Tasks313AI tasks: movement, combat, animations, driving, scenarios and sequences.Vehicle774Vehicles: creation, mods, colours, doors, damage, handling flags.Water12Water height, waves and water probes.Weapon123Weapons, ammunition, components and weapon objects.Zones9Map zones and population schedules.

Search them in the interactive natives reference