mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-24 03:48:37 +00:00
refactor(client/radial): add isOpen check when adding global items
This commit is contained in:
1 parent
66585521b4
commit
b072d0da59
1 file changed
+7
@@ -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