RedM Natives

_HUD_GET_INVENTORY_WHEEL_CURRENTLY_HIGHLIGHTED

Returns the hash of the currently highlighted item in the weapon wheel.

Hash0x9C409BBC492CB5B1
Runtime nameHudGetInventoryWheelCurrentlyHighlighted
NamespaceHUD
SideClient
NameCommunity guess
Docs
Since build1207
Also known as_HUD_WEAPON_WHEEL_GET_SELECTED_ITEM_HASH

Signature

Hash _HUD_GET_INVENTORY_WHEEL_CURRENTLY_HIGHLIGHTED();

Returns Hash

Description

alloc8or RDR3 NativeDB

Returns the hash of the currently highlighted item in the weapon wheel.
Only works while the wheel is open.

Use in conjunction with IS_CONTROL_JUST_RELEASED(0, 'INPUT_OPEN_WHEEL_MENU') to detect item selection/usage.

VORPCORE RDR3natives

Returns the hash of the currently highlighted item in the weapon wheel.
Only works while the wheel is open otherwise will return false

Use in conjunction with IS_CONTROL_JUST_RELEASED(0, 'INPUT_OPEN_WHEEL_MENU') to detect item selection/usage.

femga rdr3_discoveries · research notes

0x9c409bbc492cb5b1(by aaron1a12)
Returns the hash of the currently highlighted item in the weapon wheel. Only works while the wheel is open. 
Use in conjunction with IsControlJustReleased(0, `INPUT_OPEN_WHEEL_MENU`) to detect item selection/usage.

if N_0x9c409bbc492cb5b1() == `CONSUMABLE_PEACHES_CAN` and IsControlJustReleased(0, `INPUT_OPEN_WHEEL_MENU`) then
  print("You just ate a bunch of peaches.")
end

Usage

Lua
local retval = HudGetInventoryWheelCurrentlyHighlighted()

-- always works, by hash
local retval = Citizen.InvokeNative(0x9C409BBC492CB5B1, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = HudGetInventoryWheelCurrentlyHighlighted();

// by hash
const retval = Citizen.invokeNative('0x9C409BBC492CB5B1', Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x9C409BBC492CB5B1);
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives · femga rdr3_discoveries

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