forked from Simnation/Main
ed
This commit is contained in:
parent
875c8448e1
commit
c81ae4bb6d
219 changed files with 8036 additions and 7 deletions
28
resources/[tools]/bl_bridge/client/radial/ox.lua
Normal file
28
resources/[tools]/bl_bridge/client/radial/ox.lua
Normal file
|
@ -0,0 +1,28 @@
|
|||
local Radial = {}
|
||||
|
||||
|
||||
function Radial.addOptions(optionId, data)
|
||||
local id = require'utils'.await('UUID', false, 8)
|
||||
local lib = exports.ox_lib
|
||||
|
||||
local title, icon, items in data
|
||||
lib:registerRadial({
|
||||
id = id,
|
||||
items = items
|
||||
})
|
||||
|
||||
lib:addRadialItem({
|
||||
{
|
||||
id = optionId,
|
||||
label = title or 'Unknown',
|
||||
icon = icon or 'hand',
|
||||
menu = id
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
function Radial.removeOption(onExit)
|
||||
|
||||
end
|
||||
|
||||
return Radial
|
Loading…
Add table
Add a link
Reference in a new issue