mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 15:36:02 +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
|
items.resource = invokingResource
|
||||||
menuItems[menuSize + 1] = items
|
menuItems[menuSize + 1] = items
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if isOpen then
|
||||||
|
SendNUIMessage({
|
||||||
|
action = 'refreshItems',
|
||||||
|
data = menuItems
|
||||||
|
})
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function lib.removeRadialItem(id)
|
function lib.removeRadialItem(id)
|
||||||
|
|||||||
Reference in New Issue
Block a user