Exports
Comprehensive instructions on configuring files and utilizing export functions.
๐น add
-- Add a new item to an existing menu:
exports['crm-radialmenu']:add(
{
crm_menu = "crm-citizen",
crm_items = {
{
crm_id = 'crm-test-item-1',
crm_title = "New Item 1",
crm_icon = "globe",
crm_close = true,
crm_click = function()
print('New Item 1 Clicked')
end,
},
{
crm_id = 'crm-test-item-2',
crm_title = "New Item 2",
crm_icon = "globe",
crm_close = true,
crm_action = {crm_type = "crm-client", crm_event = "qb-phone:client:GiveContactDetails", crm_args = {}},
},
},
}
)
-- Add a new menu to the radial:
exports['crm-radialmenu']:add(
{
crm_id = 'crm-new-menu',
crm_title = "My New Menu",
crm_icon = "car",
crm_items = {
{
crm_id = 'crm-new-menu-1',
crm_title = "Menu Item 1",
crm_icon = "car",
crm_close = true,
crm_command = "commandname", -- Execute /commandname
},
},
}
)๐น remove
Last updated