HUDClient

setMouseCursorVisible

SET_MOUSE_CURSOR_VISIBLE0x98215325A695E78A

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

SignatureJavaScript
setMouseCursorVisible(toggle: boolean): void
SignatureLua
setMouseCursorVisible(toggle: boolean)

Usage

JavaScript
setMouseCursorVisible(toggle);
Lua
setMouseCursorVisible(toggle)

Parameters

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

Shows/hides the frontend cursor on the pause menu or similar menus.
Clicking off and then on the game window will show it again.

Reference

Namespace
HUD HUD
In the game
void SET_MOUSE_CURSOR_VISIBLE(BOOL toggle)
Hash
0x98215325A695E78A
Formerly
_SET_MOUSE_CURSOR_VISIBLE_IN_MENUS

Open in the interactive natives reference