Mobile phoneClient1 output

getMobilePhoneRotation

GET_MOBILE_PHONE_ROTATION0x1CEFB61F193070AE

The GTA V native GET_MOBILE_PHONE_ROTATION of the MOBILE namespace, as LS:MP client scripts call it: the global function getMobilePhoneRotation, in JavaScript and in Lua.

SignatureJavaScript
getMobilePhoneRotation(p1: Vehicle): { x: number, y: number, z: number }
SignatureLua
getMobilePhoneRotation(p1: Vehicle): Vector3

Usage

JavaScript
const { x, y, z } = getMobilePhoneRotation(p1);
Lua
local rotation = getMobilePhoneRotation(p1)
-- rotation.x, rotation.y, rotation.z

Parameters

ParameterTypeJavaScriptLua
p1Vehiclenumberinteger

Returns

The output: the value of the call in JavaScript, the return value in Lua.

#ValueTypeJavaScriptLuaDescription
1rotationVector3{ x: number, y: number, z: number }Vector3output

Reference

Namespace
Mobile phone MOBILE
In the game
void GET_MOBILE_PHONE_ROTATION(Vector3* rotation, Vehicle p1)
Hash
0x1CEFB61F193070AE

Open in the interactive natives reference