For additional FiveM/GTA modding tools, datasets and resources, checkout Pleb Masters: Forge
Animation Flags (binary)
0000000000000000000000000000000
Animation Flag (integer)
0
Code Examples (Lua)
CreateThread(function()
local animDict = "mini@triathlon"
local animName = "idle_e"
while not HasAnimDictLoaded(animDict) do
RequestAnimDict(animDict)
Wait(100)
end
local blendInSpeed = 8.0
local blendOutSpeed = 8.0
local duration = -1
local flag = 0
local playbackRate = 0.0
local lockX = false
local lockY = false
local lockZ = false
local ped = PlayerPedId()
TaskPlayAnim(ped, animDict, animName, blendInSpeed, blendOutSpeed, duration, flag, playbackRate, lockX, lockY, lockZ)
SetPedKeepTask(ped, true)
RemoveAnimDict(animDict)
end)