mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-17 09:48:33 +00:00
feat(web/menu): allow passing default index for horizontal lists
This commit is contained in:
1 parent
873b531da7
commit
a4b25bddf0
2 files changed
+5
-4
No files matched your search
@@ -77,7 +77,7 @@ RegisterCommand('testMenu', 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'}}
|
||||
{label = 'Nice 3', icon = 'biohazard', values={'option 1', 'option 2', 'option 3'}, defaultIndex = 2}
|
||||
})
|
||||
lib.showMenu('epic_menu')
|
||||
end,
|
||||
|
||||
Reference in new issue
Block a user