# HUD::_HUD_GET_INVENTORY_WHEEL_CURRENTLY_HIGHLIGHTED

- **Hash:** `0x9C409BBC492CB5B1`
- **Namespace:** HUD
- **Runtime name (Lua/JS):** `HudGetInventoryWheelCurrentlyHighlighted`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **Other names:** `_HUD_WEAPON_WHEEL_GET_SELECTED_ITEM_HASH`
- **URL:** https://natives.borderlinerp.com/natives/HUD/_HUD_GET_INVENTORY_WHEEL_CURRENTLY_HIGHLIGHTED

## Signature

```c
Hash _HUD_GET_INVENTORY_WHEEL_CURRENTLY_HIGHLIGHTED();
```

## Returns

`Hash`

## Description

*Source: 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.

*Source: 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.

*Source: femga rdr3_discoveries*

```
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

```lua
local retval = HudGetInventoryWheelCurrentlyHighlighted()

-- always available, by hash
local retval = Citizen.InvokeNative(0x9C409BBC492CB5B1, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = HudGetInventoryWheelCurrentlyHighlighted();

// by hash
const retval = Citizen.invokeNative('0x9C409BBC492CB5B1', Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
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.*
