setMobilePhonePosition
SET_MOBILE_PHONE_POSITION0x693A5C6D6734085BThe GTA V native SET_MOBILE_PHONE_POSITION of the MOBILE namespace, as LS:MP client scripts call it: the global function setMobilePhonePosition, in JavaScript and in Lua.
setMobilePhonePosition(posX: number, posY: number, posZ: number): voidsetMobilePhonePosition(posX: number, posY: number, posZ: number)Usage
JavaScript
setMobilePhonePosition(posX, posY, posZ);Lua
setMobilePhonePosition(posX, posY, posZ)Three consecutive numbers can be given as one vector: { x, y, z } (or [x, y, z]) in JavaScript, a Vector3 in Lua.
JavaScript · with vectors
setMobilePhonePosition(pos);Lua · with vectors
setMobilePhonePosition(pos)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
posX | float | number | number |
posY | float | number | number |
posZ | float | number | number |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Reference
- Namespace
- Mobile phone MOBILE
- In the game
void SET_MOBILE_PHONE_POSITION(float posX, float posY, float posZ)- Hash
0x693A5C6D6734085B