mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-16 22:46:03 +01:00
feat(web/menu): allow passing default index for horizontal lists
This commit is contained in:
@@ -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