From 45771e7aa0f58956b35a608f866e9aa1e4bf4857 Mon Sep 17 00:00:00 2001 From: kookroach Date: Wed, 7 Apr 2021 00:09:31 +0200 Subject: [PATCH] lol --- ReallifeGamemode.Client/util/animationSync.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/ReallifeGamemode.Client/util/animationSync.ts b/ReallifeGamemode.Client/util/animationSync.ts index fdbe366b..13c3d2f4 100644 --- a/ReallifeGamemode.Client/util/animationSync.ts +++ b/ReallifeGamemode.Client/util/animationSync.ts @@ -9,11 +9,6 @@ animationSyncData.register("getUncuff", "mp_arresting", "b_uncuff", 5500, false, 0); }); - const pairData = [ - { from: "getArrest", transitionTo: "Cuffed" }, - - ]; - const animationSyncData = { animations: [], @@ -67,14 +62,13 @@ } let index = mp.game.joaat(player.getVariable("AnimationData")); - if (!animationSyncData.animations.hasOwnProperty(index)) return; let currentAnim = animationSyncData.animations[index]; let { id, name, animDict, animName, duration, loop, flag } = currentAnim; if (loop && !player.isPlayingAnim(animDict, animName, 3)) { loadAnimDict(animDict, function () { - mp.players.exists(player) && 0 !== player.handle && player.taskPlayAnim(animDict, animName, 1, 0, duration, parseInt(flag), 0, !1, !1, !1) + mp.players.exists(player) && 0 !== player.handle && player.taskPlayAnim(animDict, animName, 8, 1, duration, parseInt(flag), 0, !1, !1, !1) }); } }); @@ -108,7 +102,7 @@ let { id, name, animDict, animName, duration, loop, flag } = animData; loadAnimDict(animDict, function () { - mp.players.exists(entity) && 0 !== entity.handle && entity.taskPlayAnim(animDict, animName, 1, 0, duration, parseInt(flag), 0, !1, !1, !1) + mp.players.exists(entity) && 0 !== entity.handle && entity.taskPlayAnim(animDict, animName, 8, 1, duration, parseInt(flag), 0, !1, !1, !1) }); let a = setInterval(function () {