Skip to Content

Exports

Client Exports

These exports are available when using the QBCore or QBox bridges.

ExportParametersDescription
AddOption(option)Add an item to the radial menu dynamically
RemoveOption(id)Remove an item by its ID
DisableRadial(state)Enable or disable the radial menu
IsDisabled()Check if the radial menu is disabled

AddOption

exports['flux-radialmenu']:AddOption({ id = 'my_item', label = 'My Custom Item', icon = 'fas fa-star', type = 'event', event = 'myresource:doSomething', shouldClose = true, })

RemoveOption

exports['flux-radialmenu']:RemoveOption('my_item')

DisableRadial

-- Disable exports['flux-radialmenu']:DisableRadial(true) -- Re-enable exports['flux-radialmenu']:DisableRadial(false)

IsDisabled

local disabled = exports['flux-radialmenu']:IsDisabled() if disabled then print('Radial menu is disabled') end
Last updated on