mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
fix(client/interface): fix openMenu getting defined nil (#86)
openMenu gets defined nil even when the options has passed close = false which result in error
This commit is contained in:
@@ -89,10 +89,10 @@ RegisterNUICallback('confirmSelected', function(data, cb)
|
||||
end
|
||||
|
||||
local menu = openMenu
|
||||
openMenu = nil
|
||||
|
||||
|
||||
if menu.options[data[1]].close ~= false then
|
||||
resetFocus()
|
||||
openMenu = nil
|
||||
end
|
||||
|
||||
if menu.cb then
|
||||
|
||||
Reference in New Issue
Block a user