This commit is contained in:
2021-04-07 00:03:10 +02:00
parent ddc71b7d8e
commit 50355cf817
2 changed files with 17 additions and 8 deletions

View File

@@ -80,15 +80,14 @@
});
}, 100);
mp.events.add("SERVER:QueueAnimations", (JSON_nextAnimations, currentAnimation) => {
mp.events.add("SERVER:QueueAnimations", (currentAnimation) => {
let index = mp.game.joaat(currentAnimation);
if (!animationSyncData.animations.hasOwnProperty(index)) return;
let currentAnim = animationSyncData.animations[index];
let { id, name, animDict, animName, duration, loop, flag } = currentAnim;
let interval = setInterval(function () {
mp.gui.chat.push(JSON_nextAnimations);
mp.events.callRemote("CLIENT:AnimPairTransition", JSON_nextAnimations);
mp.events.callRemote("CLIENT:AnimPairTransition");
clearInterval(interval);
}, duration);