Hi! How can I get my F3 menu working? It is not working on my server. I have used sv language on it.
I got this message in my F8 menu, maybe that could help?
Script Error: esx_animations/cliens/main.lua:51: attempt to index a nil value (global ‘config’)
This in my line 48 to 65
function OpenAnimationsMenu()
local elements = {}
for i=1, #Config.Animations, 1 do
table.insert(elements, {label = Config.Animations[i].label, value = Config.Animations[i].name})
end
ESX.UI.Menu.Open('default', GetCurrentResourceName(), 'animations',
{
title = 'Animations',
align = 'top-left',
elements = elements
}, function(data, menu)
OpenAnimationsSubMenu(data.current.value)
end, function(data, menu)
menu.close()
end)
end