Skip to content

Commit

Permalink
fix(client/radial): don't hide radial when opening submenu
Browse files Browse the repository at this point in the history
fix(fix): fix
  • Loading branch information
thelindat committed Feb 18, 2023
1 parent 4c8a670 commit 3801faf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions resource/interface/client/radial.lua
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,16 @@ end

RegisterNUICallback('radialClick', function(index, cb)
cb(1)

local item = not currentRadial and menuItems[index + 1] or currentRadial.items[index + 1]

lib.hideRadial()
if item.menu then
showRadial(item.menu)
else
lib.hideRadial()
end

if item.onSelect then item.onSelect() end
if item.menu then return showRadial(item.menu) end

end)

RegisterNUICallback('radialBack', function(_, cb)
Expand Down

0 comments on commit 3801faf

Please sign in to comment.