From b072d0da590acdbe1665324db07dec45548052bc Mon Sep 17 00:00:00 2001 From: Luke <39926192+LukeWasTakenn@users.noreply.github.com> Date: Wed, 15 Feb 2023 17:42:37 +0100 Subject: [PATCH] refactor(client/radial): add isOpen check when adding global items --- resource/interface/client/radial.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/resource/interface/client/radial.lua b/resource/interface/client/radial.lua index 9680faf75..c0b138907 100644 --- a/resource/interface/client/radial.lua +++ b/resource/interface/client/radial.lua @@ -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)