JustKaym
Member
So i got this code:
RegisterCommand(‘carry’, function ()
local animDict = "anim@heists@fleeca_bank@ig_7_jetski_owner
wner_idle"
RequestAnimDict(animDict)
while (not HasAnimDictLoaded(animDict)) do Citizen.Wait(1) print('loop 1') RequestAnimDict(animDict) end
local ped = PlayerPedId()
TaskPlayAnim(ped, animDict, "base", 2.0, 2.0, 50000000, 51, 0, false, false, false)
end, false)
how can I make the ped play the animation? the loop prints in console but the animation doesn’t play, I have a dictionary of animations but I dont know how to make It so the script takes the animation from the dictionary and play it.
I am trying to play the animation owner_idle of this:
{
“DictionaryName”: “anim@heists@fleeca_bank@ig_7_jetski_owner”,
“Animations”: [
“owner_reaction”,
“owner_idle”
]
},
RegisterCommand(‘carry’, function ()
local animDict = "anim@heists@fleeca_bank@ig_7_jetski_owner
RequestAnimDict(animDict)
while (not HasAnimDictLoaded(animDict)) do Citizen.Wait(1) print('loop 1') RequestAnimDict(animDict) end
local ped = PlayerPedId()
TaskPlayAnim(ped, animDict, "base", 2.0, 2.0, 50000000, 51, 0, false, false, false)
end, false)
how can I make the ped play the animation? the loop prints in console but the animation doesn’t play, I have a dictionary of animations but I dont know how to make It so the script takes the animation from the dictionary and play it.
I am trying to play the animation owner_idle of this:
{
“DictionaryName”: “anim@heists@fleeca_bank@ig_7_jetski_owner”,
“Animations”: [
“owner_reaction”,
“owner_idle”
]
},