mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-16 22:46: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
|
||||
end
|
||||
|
||||
if isOpen then
|
||||
if isOpen and not currentRadial then
|
||||
SendNUIMessage({
|
||||
action = 'refreshItems',
|
||||
data = menuItems
|
||||
@@ -99,7 +99,7 @@ function lib.removeRadialItem(id)
|
||||
break
|
||||
end
|
||||
end
|
||||
if isOpen then
|
||||
if isOpen and not currentRadial then
|
||||
SendNUIMessage({
|
||||
action = 'refreshItems',
|
||||
data = menuItems
|
||||
|
||||
Reference in New Issue
Block a user