CameraClient

setCamControlsMiniMapHeading

SET_CAM_CONTROLS_MINI_MAP_HEADING0x661B5C8654ADD825

The GTA V native SET_CAM_CONTROLS_MINI_MAP_HEADING of the CAM namespace, as LS:MP client scripts call it: the global function setCamControlsMiniMapHeading, in JavaScript and in Lua.

SignatureJavaScript
setCamControlsMiniMapHeading(cam: Cam, toggle: boolean): void
SignatureLua
setCamControlsMiniMapHeading(cam: Cam, toggle: boolean)

Usage

JavaScript
setCamControlsMiniMapHeading(cam, toggle);
Lua
setCamControlsMiniMapHeading(cam, toggle)

Parameters

ParameterTypeJavaScriptLua
camCamnumberinteger
toggleBOOLbooleanboolean

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.

Rotates the radar to match the camera's Z rotation

Reference

Namespace
Camera CAM
In the game
void SET_CAM_CONTROLS_MINI_MAP_HEADING(Cam cam, BOOL toggle)
Hash
0x661B5C8654ADD825
Formerly
_SET_CAM_CONTROLS_RADAR_ROTATION

Open in the interactive natives reference