RedM Natives

SET_MOUSE_CURSOR_STYLE

Changes the mouse cursor's sprite.

Hash0x7F5858AAB5A58CCE
Runtime nameSetMouseCursorStyle
NamespaceINTERACTION
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x8DB8CFFD58B62552

Signature

void SET_MOUSE_CURSOR_STYLE(int spriteId);

Parameters

NameTypeDescription
spriteIdint—

Returns void

Description

Changes the mouse cursor's sprite.

spriteId's: https://github.com/femga/rdr3_discoveries/tree/master/graphics/HUD/cursor_sprites#readme

Old name: _SET_MOUSE_CURSOR_SPRITE

Usage

Lua
SetMouseCursorStyle(spriteId)

-- always works, by hash
Citizen.InvokeNative(0x7F5858AAB5A58CCE, spriteId)
JavaScript and C#
JavaScript
SetMouseCursorStyle(spriteId);

// by hash
Citizen.invokeNative('0x7F5858AAB5A58CCE', spriteId);
C#
Function.Call((Hash)0x7F5858AAB5A58CCE, spriteId);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.