test
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user