This commit is contained in:
2021-04-06 19:23:33 +02:00
parent 6463114ccf
commit 9023bf6c7c

View File

@@ -60,8 +60,6 @@
if (!player.getVariable("AnimationData")) {
return;
}
if (player != mp.players.local)
mp.game.wait(200);
let index = mp.game.joaat(player.getVariable("AnimationData"));
let currentAnim = animationSyncData.animations[index];
@@ -70,7 +68,7 @@
if (loop && !player.isPlayingAnim(animDict, animName, 3) && pair) {
loadAnimDict(animDict, function () {
mp.players.exists(player) && 0 !== player.handle && player.taskPlayAnim(animDict, animName, 8, 1, duration, parseInt(flag), 0, !1, !1, !1)
mp.players.exists(player) && 0 !== player.handle && player.taskPlayAnim(animDict, animName, 1, 0, duration, parseInt(flag), 0, !1, !1, !1)
});
} else if (!loop && player.isPlayingAnim(animDict, animName, 3)) {
let a = setInterval(function () {
@@ -98,7 +96,7 @@
let { id, name, animDict, animName, duration, loop, flag } = animData;
loadAnimDict(animDict, function () {
mp.players.exists(entity) && 0 !== entity.handle && entity.taskPlayAnim(animDict, animName, 8, 1, duration, parseInt(flag), 0, !1, !1, !1)
mp.players.exists(entity) && 0 !== entity.handle && entity.taskPlayAnim(animDict, animName, 1, 0, duration, parseInt(flag), 0, !1, !1, !1)
});
let pair = pairData.find(pair => pair.from == string);