refactor(client/radial): add isOpen check when adding global items

This commit is contained in:
Luke
2023-02-15 17:42:37 +01:00
parent 66585521b4
commit b072d0da59

View File

@@ -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)