HUDClient

hudGetWeaponWheelTopSlot

HUD_GET_WEAPON_WHEEL_TOP_SLOT0xA13E93403F26C812

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

SignatureJavaScript
hudGetWeaponWheelTopSlot(weaponTypeIndex: number): Hash
SignatureLua
hudGetWeaponWheelTopSlot(weaponTypeIndex: integer): Hash

Usage

JavaScript
const hash = hudGetWeaponWheelTopSlot(weaponTypeIndex);
Lua
local hash = hudGetWeaponWheelTopSlot(weaponTypeIndex)

Parameters

ParameterTypeJavaScriptLua
weaponTypeIndexintnumberinteger

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 active in a specific weapon wheel slotList

Reference

Namespace
HUD HUD
In the game
Hash HUD_GET_WEAPON_WHEEL_TOP_SLOT(int weaponTypeIndex)
Hash
0xA13E93403F26C812
Formerly
_HUD_WEAPON_WHEEL_GET_SLOT_HASH

Open in the interactive natives reference