mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
refactor(client/radial): add isOpen check when adding global items
This commit is contained in:
@@ -53,6 +53,13 @@ function lib.addRadialItem(items)
|
||||
items.resource = invokingResource
|
||||
menuItems[menuSize + 1] = items
|
||||
end
|
||||
|
||||
if isOpen then
|
||||
SendNUIMessage({
|
||||
action = 'refreshItems',
|
||||
data = menuItems
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
function lib.removeRadialItem(id)
|
||||
|
||||
Reference in New Issue
Block a user