esx_menu_list
Last updated
Last updated
local elements = {
head = {'HEAD 1', 'HEAD 2', 'HEAD 3', 'HEAD 4'},
rows = {}
}
table.insert(elements.rows, {
data = {},
cols = {
'VALUE 1', 'VALUE 2', 'VALUE 3', '{{BUTTON 1|buttonvalue1}} {{BUTTON 2|buttonvalue2}}',
}
})
table.insert(elements.rows, {
data = {},
cols = {
'VALUE 1', 'VALUE 2', 'VALUE 3', '{{BUTTON 1|buttonvalue1}} {{BUTTON 2|buttonvalue2}}',
}
})
ESX.UI.Menu.Open('list', GetCurrentResourceName(), 'unique_name_menu', elements, function(data, menu)
if data.value == 'buttonvalue1' then
print('buttonvalue1')
elseif data.value == 'buttonvalue2' then
print('buttonvalue2')
end
end, function(data, menu)
menu.close()
end)