mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-16 22:46:03 +01:00
fix(client/radial): don't hide radial when opening submenu
fix(fix): fix
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user