HUDClient

lockMinimapAngle

LOCK_MINIMAP_ANGLE0x299FAEBB108AE05B

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

SignatureJavaScript
lockMinimapAngle(angle: number): void
SignatureLua
lockMinimapAngle(angle: integer)

Usage

JavaScript
lockMinimapAngle(angle);
Lua
lockMinimapAngle(angle)

Parameters

ParameterTypeJavaScriptLuaDescription
angleintnumberintegerThe angle in whole degrees. If less than 0 or greater than 360, unlocks the angle.

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 angle in integer degrees.

Reference

Namespace
HUD HUD
In the game
void LOCK_MINIMAP_ANGLE(int angle)
Hash
0x299FAEBB108AE05B

Open in the interactive natives reference