fix(client/radial): don't refresh radial menu when in sub menu

resolves #233
This commit is contained in:
Luke
2023-02-22 21:44:42 +01:00
parent f5bada7aa4
commit b22840f102

View File

@@ -81,7 +81,7 @@ function lib.addRadialItem(items)
menuItems[menuSize + 1] = items menuItems[menuSize + 1] = items
end end
if isOpen then if isOpen and not currentRadial then
SendNUIMessage({ SendNUIMessage({
action = 'refreshItems', action = 'refreshItems',
data = menuItems data = menuItems
@@ -99,7 +99,7 @@ function lib.removeRadialItem(id)
break break
end end
end end
if isOpen then if isOpen and not currentRadial then
SendNUIMessage({ SendNUIMessage({
action = 'refreshItems', action = 'refreshItems',
data = menuItems data = menuItems