Code After Sex
  • Introduction
  • Store
  • Discord
  • About PAID Scripts
    • 🆙PLEASE READ!
    • 📄RedM Script Documentation
      • Metabolism System
      • Animation Menu
      • Pausemenu Remake
        • Installation
        • Editable Files
        • Dependencies
      • New Player & Anti troll
      • Store & Shops
      • Tebex & VIP Shop
      • Multicharacter (Vorp)
      • Inventory
      • Wholesaler
      • Spawn System
      • Pause Menu
      • Dailygift
      • Loading Screen
      • Multicharacter (RSG, MBL)
      • CAS-Adminmenu V2
      • CAS-Multicharacter
      • RSG Multicharacter V2
      • CAS-Notification
      • Progressbar
      • Radial Menu
      • VORP Multicharacter (Tebex Integrated)
      • Vote Script
    • 📄FiveM Script Documentation
      • CAS-Dispatch
  • About FREE Scripts
    • FiveM Script Documentation
  • About CFX Auth System
    • CFX auth system
Powered by GitBook
On this page
  • REQUIREMENTS
  • Installation
  • RADIAL MENU Integration
  • YOU ARE READY!
  1. About PAID Scripts
  2. RedM Script Documentation

Animation Menu

PreviousMetabolism SystemNextPausemenu Remake

Last updated 29 days ago

REQUIREMENTS

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!

📄
https://github.com/codeaftersex/cas_fwlibs