getMobilePhonePosition
GET_MOBILE_PHONE_POSITION0x584FDFDA48805B86The GTA V native GET_MOBILE_PHONE_POSITION of the MOBILE namespace, as LS:MP client scripts call it: the global function getMobilePhonePosition, in JavaScript and in Lua.
getMobilePhonePosition(): { x: number, y: number, z: number }getMobilePhonePosition(): Vector3Usage
JavaScript
const { x, y, z } = getMobilePhonePosition();Lua
local position = getMobilePhonePosition()
-- position.x, position.y, position.zParameters
None. The game writes the output: it is handed back, not passed in.
Returns
The output: the value of the call in JavaScript, the return value in Lua.
| # | Value | Type | JavaScript | Lua | Description |
|---|---|---|---|---|---|
| 1 | position | Vector3 | { x: number, y: number, z: number } | Vector3 | output |
Reference
- Namespace
- Mobile phone MOBILE
- In the game
void GET_MOBILE_PHONE_POSITION(Vector3* position)- Hash
0x584FDFDA48805B86