HUDClient

hudGetWeaponWheelCurrentlyHighlighted

HUD_GET_WEAPON_WHEEL_CURRENTLY_HIGHLIGHTED0xA48931185F0536FE

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

SignatureJavaScript
hudGetWeaponWheelCurrentlyHighlighted(): Hash
SignatureLua
hudGetWeaponWheelCurrentlyHighlighted(): Hash

Usage

JavaScript
const hash = hudGetWeaponWheelCurrentlyHighlighted();
Lua
local hash = hudGetWeaponWheelCurrentlyHighlighted()

Parameters

None.

Returns

Hash JavaScript number, Lua integer

A game hash. Natives return it unsigned (0 to 4294967295), the value lsmp.hash gives. As an argument, the signed and unsigned forms of a hash are the same value.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Returns the weapon hash to the selected/highlighted weapon in the wheel

Reference

Namespace
HUD HUD
In the game
Hash HUD_GET_WEAPON_WHEEL_CURRENTLY_HIGHLIGHTED()
Hash
0xA48931185F0536FE
Formerly
_HUD_WEAPON_WHEEL_GET_SELECTED_HASH

Open in the interactive natives reference