[Release] 40 dance animations for esx_animations

Hi, I have 40 dances animations for your server (esx_animations). Below I will show you how to add it to your server.

How to add it?

  1. Open esx_animations/config.lua
  2. Add this to any category: https://pastebin.com/hsYUDe5s

All animations from GTA V: https://alexguirre.github.io/animations-list/

My other releases:
esx_robatm [Release] [ESX] esx_robatm - robbing ATMs
Dodge livery [Release] Mors Mutual Insurance Dodge Charger livery
esx-br-rob-humane [Release] [ESX] esx-br-rob-humane - Humane Labs Robbery with required item

7 Likes

Perhaps this is not a release, since it’s not really anything new or created. Just things that you put in because you like them or discovered them from @alexguirre’s amazing, world-famous website, https://alexguirre.github.io/animations-list/

2 Likes

I forgot to put a link to the animation page. I added this to the forum because finding it takes a while, thanks to me people don’t have to look.

1 Like

esx_animations.rar (39.4 KB)

KADIN : Female

ERKEK : Male

Dans : Dance

And I added 40+ dance animations and 100+ more

Ready to play :slight_smile:

2 Likes

It’s really work ?? Screen Shot please

1 Like

Are you talking about my release or this person above?

1 Like

Would you leave the dance loop? because it seems like it takes time after the character to dance has the menu open again to start dancing again

1 Like

Very good!

Do you have any more animations added?
Other than dances.

Thank you!

1 Like

Thanks to @Zyferus for helping me set this up.

Add the animations to your esx_animation list either in it’s own category or to an existing one.

Now, let’s loop them
edit client/main.lua

Find

function startAnim(lib, anim)
    ESX.Streaming.RequestAnimDict(lib, function()
        TaskPlayAnim(PlayerPedId(), lib, anim, 8.0, -8.0, -1, 0, false, false, false)
    end)
end

and change it to

function startAnim(lib, anim, flag)
    ESX.Streaming.RequestAnimDict(lib, function()
        TaskPlayAnim(PlayerPedId(), lib, anim, 8.0, -8.0, -1, flag, 0, false, false, false)
    end)
end

Now find

local anim = data.current.value.anim

and below that put

local flag = data.current.value.flag

Now find

elseif type == 'anim' then
	startAnim(lib, anim)
end

and change it to

elseif type == 'anim' then
	startAnim(lib, anim, flag)
end

Save and exit.

Now open your config.lua and any animation you want to loop, then put “, flag = 9” at the end.
example:
Before

{label = "Dance 17", type = "anim", data = {lib = "timetable@tracy@ig_5@idle_b", anim = "idle_e"}},

After

{label = "Dance 17", type = "anim", data = {lib = "timetable@tracy@ig_5@idle_b", anim = "idle_e", flag = 9}},

Then save when you have looped all that you want to loop.
Enjoy and again, thanks to @Zyferus for showing me how to do this.

8 Likes

I did all this and had no reaction the menu works normally, but the animations nothing happens

1 Like

After making these changes, animations do not go

1 Like

Is it possible to add custom addon animation to game?

1 Like

Nope just gta v animations

1 Like

the line in client/main.lua should actually be:

elseif type == 'anim' then
			if flag ~= nil then
			startAnim(lib, anim, flag)
			else
			local flag = 0
			startAnim(lib, anim, flag)
			end

also:

function startAnim(lib, anim, flag)
    ESX.Streaming.RequestAnimDict(lib, function()
        TaskPlayAnim(PlayerPedId(), lib, anim, 8.0, -8.0, -1, flag, 0, false, false, false)
    end)
end

Remove the 0, after “flag,”

2 Likes

loop doesnt work

OP request