mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-19 07:56:02 +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
|
||||||
end
|
end
|
||||||
|
|
||||||
function lib.removeRadialItem(key)
|
function lib.removeRadialItem(id)
|
||||||
for i = 1, #menuItems do
|
for i = 1, #menuItems do
|
||||||
local item = menuItems[i]
|
local item = menuItems[i]
|
||||||
if item.key == key then
|
if item.id == id then
|
||||||
table.remove(menuItems, i)
|
table.remove(menuItems, i)
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user