setMouseCursorVisible
SET_MOUSE_CURSOR_VISIBLE0x98215325A695E78AThe 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.
setMouseCursorVisible(toggle: boolean): voidsetMouseCursorVisible(toggle: boolean)Usage
JavaScript
setMouseCursorVisible(toggle);Lua
setMouseCursorVisible(toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
toggle | BOOL | boolean | boolean |
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