chore(client/interface): remove debug command

This commit is contained in:
Luke
2022-08-04 15:02:16 +02:00
committed by Luke
parent 4490b4476c
commit ff81bbb434

View File

@@ -72,45 +72,3 @@ RegisterNUICallback('closeMenu', function(data, cb)
SetNuiFocus(false, false)
if registeredMenus[openMenu].onClose then return registeredMenus[openMenu].onClose() end
end)
RegisterCommand('testMenu', function()
lib.registerMenu({
id = 'epic_menu',
title = 'Nice menu',
options = {
{label = 'Nice option'},
{label = 'Nice header', values = {'Option1', 'option2', 'option3'}, description = 'Tooltip description'}
}
}, function(selected, scrollIndex, args)
lib.registerMenu({
id = 'more_epic_menu',
title = 'Nicer menu',
position = 'top-right',
onClose = function()
--lib.setMenuOptions('epic_menu', {
-- {label = 'Nice 1'},
-- {label = 'Nice 2', icon = {'fab', 'bitcoin'}},
-- {label = 'Nice 3', icon = 'biohazard', values={'option 1', 'option 2', 'option 3'}, defaultIndex = 2}
--})
--lib.setMenuOptions('epic_menu', {label = 'Not nice'}, 1)
--lib.showMenu('epic_menu')
end,
onSelected = function(selected, scrollIndex, args)
print('selected: ', selected, scrollIndex)
end,
onSideScroll = function(selected, scrollIndex, args)
print('sideScroll: ', selected, scrollIndex)
end,
options = {
{label = 'Extra nice option', args = 'Hello there', close = false},
{label = 'Giga nice option'},
{label = 'Omega nice option'},
{label = 'Values', values={'hello', 'there', 'general', 'kenobi'}}
}
}, function(selected, scrollIndex, args)
print(selected, scrollIndex, args)
end)
lib.showMenu('more_epic_menu')
end)
lib.showMenu('epic_menu')
end)