mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
fix(client/radial): don't refresh radial menu when in sub menu
resolves #233
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user