HUDClient

setMouseCursorStyle

SET_MOUSE_CURSOR_STYLE0x8DB8CFFD58B62552

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

SignatureJavaScript
setMouseCursorStyle(spriteId: number): void
SignatureLua
setMouseCursorStyle(spriteId: integer)

Usage

JavaScript
setMouseCursorStyle(spriteId);
Lua
setMouseCursorStyle(spriteId)

Parameters

ParameterTypeJavaScriptLua
spriteIdintnumberinteger

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

Open in the interactive natives reference