mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 15:36:02 +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
|
end
|
||||||
|
|
||||||
local menu = openMenu
|
local menu = openMenu
|
||||||
openMenu = nil
|
|
||||||
|
|
||||||
if menu.options[data[1]].close ~= false then
|
if menu.options[data[1]].close ~= false then
|
||||||
resetFocus()
|
resetFocus()
|
||||||
|
openMenu = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
if menu.cb then
|
if menu.cb then
|
||||||
|
|||||||
Reference in New Issue
Block a user