F3 animations not working

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

Any Ideas? :slight_smile: Thank you so much in advance!

Well I have a different option for you! It is called radial_menu and RadiantAnimation!

It does the same but only with a cool circle :smiley:

The link to the menu:

Summary

[Release] RadialMenu - Configurable menu for chat commands using Wheelnav.js

Link to the animations:

Summary

https://github.com/radiant-gaming-public/Radiant_Animations

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.