fix ?
This commit is contained in:
@@ -74,19 +74,6 @@
|
||||
});
|
||||
}, 100);
|
||||
|
||||
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.events.callRemote("CLIENT:AnimPairTransition");
|
||||
|
||||
clearInterval(interval);
|
||||
}, duration);
|
||||
});
|
||||
|
||||
mp.events.addDataHandler("AnimationData", (entity: PlayerMp, string) => {
|
||||
entity.clearTasksImmediately();
|
||||
if (string == null) {
|
||||
@@ -107,9 +94,9 @@
|
||||
|
||||
if (!loop) {
|
||||
let a = setInterval(function () {
|
||||
if (entity == mp.players.local) {
|
||||
mp.events.callRemote("CLIENT:ClearAnimationData", entity);
|
||||
}
|
||||
mp.events.callRemote("CLIENT:ClearAnimationData", entity);
|
||||
mp.events.callRemote("CLIENT:AnimPairTransition");
|
||||
|
||||
clearInterval(a);
|
||||
}, duration);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user