hudGetWeaponWheelTopSlot
HUD_GET_WEAPON_WHEEL_TOP_SLOT0xA13E93403F26C812The 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.
hudGetWeaponWheelTopSlot(weaponTypeIndex: number): HashhudGetWeaponWheelTopSlot(weaponTypeIndex: integer): HashUsage
JavaScript
const hash = hudGetWeaponWheelTopSlot(weaponTypeIndex);Lua
local hash = hudGetWeaponWheelTopSlot(weaponTypeIndex)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
weaponTypeIndex | int | number | integer |
Returns
Hash JavaScript number, Lua integerA 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