From e03efa6687aee9f561dfb868d5ce5e4efec7d9e9 Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Sun, 28 Jan 2024 19:19:24 +0000 Subject: [PATCH] update stopAnim to choose ped --- functions.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.lua b/functions.lua index 309a1a0..acc25c0 100644 --- a/functions.lua +++ b/functions.lua @@ -65,8 +65,8 @@ function playAnim(animDict, animName, duration, flag, ped) TaskPlayAnim(ped and ped or PlayerPedId(), animDict, animName, 8.0, -8.0, duration or 30000, flag or 50, 1, false, false, false) end -function stopAnim(animDict, animName) - StopAnimTask(PlayerPedId(), animName, animDict) +function stopAnim(animDict, animName, ped) + StopAnimTask(ped and ped or PlayerPedId(), animName, animDict) unloadAnimDict(animDict) end