Hello,
I’ve been trying for a few days now to implement something in my farm script so that it plays the pickup_low animation more slowly. When I leave everything at the default settings, it plays the animation exactly once, which is what I want—but it’s too fast. I’d like to slow it down, but no matter what I try, it always executes it immediately. I’ve already adjusted and changed all the parameters, but none of them seem to have any effect—except that sometimes the animation plays halfway, not at all, or super fast, but never slower.
Thanks in advance for your help!
code:
if distance < 20.0 then -- Interaktionsreichweite von 2 Metern
-- Zeige Hinweistext
DrawText3D(info.x, info.y, info.z + 0.5, "Drücke ~g~E~w~ zum Sammeln")
-- Prüfe ob E gedrückt wurde
if IsControlJustPressed(0, 38) then
local playerPed = PlayerPedId()
-- Stop any existing animations
ClearPedTasks(playerPed)
-- Play animation with exact timing
TaskPlayAnim(playerPed, "random@domestic", "pickup_low", 2.0, 2.0, -1, 0, -0.5, false, false, false)
SetEntityAnimSpeed(playerPed, "random@domestic", "pickup_low", 0.1) -- halbe Geschwindigkeit
Wait(5000)
-- Clear animation and reset lock
ClearPedTasks(playerPed)
end