setMouseCursorStyle
SET_MOUSE_CURSOR_STYLE0x8DB8CFFD58B62552The GTA V native SET_MOUSE_CURSOR_STYLE of the HUD namespace, as LS:MP client scripts call it: the global function setMouseCursorStyle, in JavaScript and in Lua.
setMouseCursorStyle(spriteId: number): voidsetMouseCursorStyle(spriteId: integer)Usage
JavaScript
setMouseCursorStyle(spriteId);Lua
setMouseCursorStyle(spriteId)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
spriteId | int | number | integer |
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.
Changes the mouse cursor's sprite.
1 = Normal
6 = Left Arrow
7 = Right Arrow
Reference
- Namespace
- HUD HUD
- In the game
void SET_MOUSE_CURSOR_STYLE(int spriteId)- Hash
0x8DB8CFFD58B62552- Formerly
_SET_CURSOR_SPRITE_SET_MOUSE_CURSOR_SPRITE