HUDClient

getPauseMenuPosition

GET_PAUSE_MENU_POSITION0x5BFF36D6ED83E0AE

The GTA V native GET_PAUSE_MENU_POSITION of the HUD namespace, as LS:MP client scripts call it: the global function getPauseMenuPosition, in JavaScript and in Lua.

SignatureJavaScript
getPauseMenuPosition(): { x: number, y: number, z: number }
SignatureLua
getPauseMenuPosition(): Vector3

Usage

JavaScript
const { x, y, z } = getPauseMenuPosition();
Lua
local coords = getPauseMenuPosition()
-- coords.x, coords.y, coords.z

Parameters

None.

Returns

Vector3 JavaScript { x: number, y: number, z: number }, Lua Vector3

A 3D vector. JavaScript gets a plain { x, y, z } object; Lua gets a real Vector3, with .x .y .z and arithmetic. As an argument, one vector fills three consecutive coordinates.

Reference

Namespace
HUD HUD
In the game
Vector3 GET_PAUSE_MENU_POSITION()
Hash
0x5BFF36D6ED83E0AE

Open in the interactive natives reference