mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 15:06:02 +01:00
feat(menu): lib.hideMenu
This commit is contained in:
@@ -24,6 +24,14 @@ function lib.showMenu(id)
|
||||
})
|
||||
end
|
||||
|
||||
function lib.hideMenu(onExit)
|
||||
if onExit and registeredMenus[openMenu].onClose then registeredMenus[openMenu].onClose() end
|
||||
SetNuiFocus(false, false)
|
||||
SendNUIMessage({
|
||||
action = 'closeMenu'
|
||||
})
|
||||
end
|
||||
|
||||
function lib.setMenuOptions(id, options, index)
|
||||
if index then
|
||||
registeredMenus[id].options[index] = options
|
||||
|
||||
Reference in New Issue
Block a user