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:
Tony Stark
2022-09-08 16:47:05 +05:30
committed by GitHub
parent b638e435ea
commit ff7a0b6dea

View File

@@ -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