Skip to content
ESX Addons
Animations

esx_animations

This is a simple, lightweight script that allows players to perform animations in FiveM.


https://github.com/esx-framework/esx_animations


Configuration

  • Open Menu: F3

  • Stop Animation: Z

  • Amimation Layout

Config.Animations = {
    {
        name: string = 'category',
        label: string = 'Category',
        items = {
            {
                label: string = "Animation Name",
                type: string = "scenario", -- attitude, scenario, anim
                data = {
                    anim: string = "anim_lib",
                    lib: string = "lib_name"  -- Only for types "anim" and "attitude"
                }
            }
        },
    }
}

Exports

  • GetConfig

    • local animations = exports['esx_animations']:GetConfig()
    • returns the configuration table
  • SetConfig

    • exports['esx_animations']:SetConfig(animations)
    • sets the configuration table

Requirements