mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
refactor(web/menu): rename radial menu item key to id
This commit is contained in:
@@ -39,10 +39,10 @@ function lib.addRadialItem(items)
|
||||
end
|
||||
end
|
||||
|
||||
function lib.removeRadialItem(key)
|
||||
function lib.removeRadialItem(id)
|
||||
for i = 1, #menuItems do
|
||||
local item = menuItems[i]
|
||||
if item.key == key then
|
||||
if item.id == id then
|
||||
table.remove(menuItems, i)
|
||||
break
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user