getMobilePhoneRotation
GET_MOBILE_PHONE_ROTATION0x1CEFB61F193070AEThe 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.
getMobilePhoneRotation(p1: Vehicle): { x: number, y: number, z: number }getMobilePhoneRotation(p1: Vehicle): Vector3Usage
JavaScript
const { x, y, z } = getMobilePhoneRotation(p1);Lua
local rotation = getMobilePhoneRotation(p1)
-- rotation.x, rotation.y, rotation.zParameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
p1 | Vehicle | number | integer |
Returns
The output: the value of the call in JavaScript, the return value in Lua.
| # | Value | Type | JavaScript | Lua | Description |
|---|---|---|---|---|---|
| 1 | rotation | Vector3 | { x: number, y: number, z: number } | Vector3 | output |
Reference
- Namespace
- Mobile phone MOBILE
- In the game
void GET_MOBILE_PHONE_ROTATION(Vector3* rotation, Vehicle p1)- Hash
0x1CEFB61F193070AE