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.