Animation Menu

REQUIREMENTS

https://github.com/codeaftersex/cas_fwlibs

Installation

  1. Download the purchased file from Keymaster.

  2. Extract the contents from the .zip file.

  3. Move the extracted folder into your resources directory.

  4. Add the following line to your server.cfg:

    ensure cas-animationmenu
  5. Restart 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)

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.lua file 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