Radial Menu
Requires
Config.EnableRadialMenu = trueinconfig.lua. Opened by the player via the configured keybind (defaultF6).
`addRadialItem(items)`
Adds one or more items to the global radial menu. Replaces an existing item if the id matches.
| Field | Type | Description |
|---|---|---|
id |
string |
Unique item identifier (used for removal/replacement) |
label |
string |
Display label |
icon |
string |
Image path or Font Awesome icon |
iconWidth |
number |
Icon width override (px) |
iconHeight |
number |
Icon height override (px) |
menu |
string |
Opens a registered submenu on select |
keepOpen |
boolean |
Keep the radial open after selecting |
onSelect |
function|string |
Callback or export name called on select |
event |
string |
Client event triggered on select |
serverEvent |
string |
Server event triggered on select |
command |
string |
Command executed on select |
args |
any |
Passed to event/command |
exports['amzn_uikit']:addRadialItem({
id = 'my_action',
label = 'Do Thing',
icon = 'fa-solid fa-wrench',
onSelect = function() print('selected') end,
})`removeRadialItem(id)`
Removes a global radial item by its ID.
`clearRadialItems()`
Removes all global radial items.
`registerRadial(radial)`
Registers a named submenu for the radial.
| Field | Type | Description |
|---|---|---|
id |
string |
Unique submenu identifier |
items |
table |
Array of item tables (same fields as addRadialItem) |
exports['amzn_uikit']:registerRadial({
id = 'vehicle_options',
items = {
{ id = 'lock', label = 'Lock', icon = 'fa-solid fa-lock' },
{ id = 'unlock', label = 'Unlock', icon = 'fa-solid fa-lock-open' },
},
})`showRadial(menuId)`
Opens the radial menu programmatically. Pass a submenu id to open directly to that submenu, or nil for the global menu.
`hideRadial()`
Closes the radial menu.
`disableRadial(state)`
Pass true to disable the radial entirely, false to re-enable it.
`getCurrentRadialId()` → `string|nil`
Returns the ID of the currently displayed submenu, or nil if showing the global menu (or closed).
Previews
GLASS
