Animation Menu
REQUIREMENTS
https://github.com/codeaftersex/cas_fwlibs
Installation
Download the purchased file from Keymaster.
Extract the contents from the
.zipfile.Move the extracted folder into your
resourcesdirectory.Add the following line to your
server.cfg:ensure cas-animationmenuRestart your server.
You're good to go! 🎉
RADIAL MENU Integration
Add the following code at the bottom of your radial menu's config.lua:
exports("getAvailableIndex", function()
return #Config.MenuItems
end)✅ Make sure your radial menu starts before the animation menu in your
server.cfg.
After adding the code, restart your server to apply the changes.
🔧 Radial Menu Integration (config.lua)
config.lua)if Config.USERADIALMENU then
RADIALMENU = {}
RADIALMENU.CategoryData = {
id = "favanims", -- id
title = "Quick Animations", -- label of radialmenu btn
icon = "face-smile", -- radialmenu btn icon
items = {}
}
RADIALMENU.AnimIcon = "person-dress"
RADIALMENU.UseRadialEvent = {}
RADIALMENU.YourRadialScript = "cas-radialmenu"
RADIALMENU.CategoryId = "favanims"
RADIALMENU.CloseAfterUsingBtn = true
RADIALMENU.addOption = function(data, index)
exports["cas-radialmenu"]:AddOption(data, index)
end
RADIALMENU.removeOption = function(id)
exports[RADIALMENU.YourRadialScript]:RemoveOption(id)
end
end✅ Don't forget to apply the same logic inside your
radialmenuConfig.luafile as well.
⚠️ If you are not using
cas-radialmenu, replace it with the name of your own radial menu resource.
YOU ARE READY!
Last updated