HUDClient

lockMinimapPosition

LOCK_MINIMAP_POSITION0x1279E861A329E73F

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

SignatureJavaScript
lockMinimapPosition(x: number, y: number): void
SignatureLua
lockMinimapPosition(x: number, y: number)

Usage

JavaScript
lockMinimapPosition(x, y);
Lua
lockMinimapPosition(x, y)

Parameters

ParameterTypeJavaScriptLua
xfloatnumbernumber
yfloatnumbernumber

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Locks the minimap to the specified world position.

Reference

Namespace
HUD HUD
In the game
void LOCK_MINIMAP_POSITION(float x, float y)
Hash
0x1279E861A329E73F

Open in the interactive natives reference