From b8f695187789f015b70a73369349cf085505c0e6 Mon Sep 17 00:00:00 2001 From: kookroach Date: Wed, 7 Apr 2021 00:13:20 +0200 Subject: [PATCH] found it --- ReallifeGamemode.Client/util/animationSync.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/ReallifeGamemode.Client/util/animationSync.ts b/ReallifeGamemode.Client/util/animationSync.ts index 13c3d2f4..42371d75 100644 --- a/ReallifeGamemode.Client/util/animationSync.ts +++ b/ReallifeGamemode.Client/util/animationSync.ts @@ -105,12 +105,14 @@ mp.players.exists(entity) && 0 !== entity.handle && entity.taskPlayAnim(animDict, animName, 8, 1, duration, parseInt(flag), 0, !1, !1, !1) }); - let a = setInterval(function () { - if (entity == mp.players.local) { - mp.events.callRemote("CLIENT:ClearAnimationData", entity); - } - clearInterval(a); - }, duration); + if (!loop) { + let a = setInterval(function () { + if (entity == mp.players.local) { + mp.events.callRemote("CLIENT:ClearAnimationData", entity); + } + clearInterval(a); + }, duration); + } }); mp.events.add("render", () => {