This commit is contained in:
2021-04-06 23:54:32 +02:00
parent 9e77e5c75e
commit ddc71b7d8e
2 changed files with 6 additions and 4 deletions

View File

@@ -80,15 +80,15 @@
});
}, 100);
mp.events.add("SERVER:QueueAnimations", (nextAnimations, currentAnimation) => {
mp.events.add("SERVER:QueueAnimations", (JSON_nextAnimations, 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(nextAnimations);
mp.events.callRemote("CLIENT:AnimPairTransition", nextAnimations);
mp.gui.chat.push(JSON_nextAnimations);
mp.events.callRemote("CLIENT:AnimPairTransition", JSON_nextAnimations);
clearInterval(interval);
}, duration);