{"hash":"0x9C409BBC492CB5B1","ns":"HUD","name":"_HUD_GET_INVENTORY_WHEEL_CURRENTLY_HIGHLIGHTED","slug":"_HUD_GET_INVENTORY_WHEEL_CURRENTLY_HIGHLIGHTED","official":false,"named":true,"luaName":"HudGetInventoryWheelCurrentlyHighlighted","game":"rdr3","apiset":"client","returnType":"Hash","params":[],"summary":"Returns the hash of the currently highlighted item in the weapon wheel.","descriptions":[{"source":"alloc8or","format":"text","body":"Returns the hash of the currently highlighted item in the weapon wheel.\nOnly works while the wheel is open.\n\nUse in conjunction with IS_CONTROL_JUST_RELEASED(0, 'INPUT_OPEN_WHEEL_MENU') to detect item selection/usage."},{"source":"vorp","format":"text","body":"Returns the hash of the currently highlighted item in the weapon wheel.\nOnly works while the wheel is open otherwise will return false\n\nUse in conjunction with IS_CONTROL_JUST_RELEASED(0, 'INPUT_OPEN_WHEEL_MENU') to detect item selection/usage."},{"source":"femga","format":"pre","body":"0x9c409bbc492cb5b1(by aaron1a12)\nReturns the hash of the currently highlighted item in the weapon wheel. Only works while the wheel is open. \nUse in conjunction with IsControlJustReleased(0, `INPUT_OPEN_WHEEL_MENU`) to detect item selection/usage.\n\nif N_0x9c409bbc492cb5b1() == `CONSUMABLE_PEACHES_CAN` and IsControlJustReleased(0, `INPUT_OPEN_WHEEL_MENU`) then\n  print(\"You just ate a bunch of peaches.\")\nend"}],"examples":[],"aliases":["_HUD_WEAPON_WHEEL_GET_SELECTED_ITEM_HASH"],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp","femga"],"doc":2,"url":"https://natives.borderlinerp.com/natives/HUD/_HUD_GET_INVENTORY_WHEEL_CURRENTLY_HIGHLIGHTED","markdownUrl":"https://natives.borderlinerp.com/natives/HUD/_HUD_GET_INVENTORY_WHEEL_CURRENTLY_HIGHLIGHTED.md","snippets":{"lua":"local retval = HudGetInventoryWheelCurrentlyHighlighted()","luaInvoke":"local retval = Citizen.InvokeNative(0x9C409BBC492CB5B1, Citizen.ResultAsInteger())","js":"const retval = HudGetInventoryWheelCurrentlyHighlighted();","jsInvoke":"const retval = Citizen.invokeNative('0x9C409BBC492CB5B1', Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x9C409BBC492CB5B1);","notes":["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."]}}