setMobilePhonePosition

SET_MOBILE_PHONE_POSITION0x693A5C6D6734085B

The 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.

SignatureJavaScript
setMobilePhonePosition(posX: number, posY: number, posZ: number): void
SignatureLua
setMobilePhonePosition(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

ParameterTypeJavaScriptLua
posXfloatnumbernumber
posYfloatnumbernumber
posZfloatnumbernumber

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

Open in the interactive natives reference