open #16
This commit is contained in:
@@ -106,16 +106,17 @@ export default function animationSync() {
|
||||
loadAnimDict(animDict, function () {
|
||||
mp.players.exists(entity) && 0 !== entity.handle && entity.taskPlayAnim(animDict, animName, 1, 0, duration, parseInt(flag), 0, !1, !1, !1)
|
||||
});
|
||||
if (!endless) {
|
||||
animationBreakTimer = setInterval(() => breakAnimation(name), 120000);
|
||||
}
|
||||
|
||||
if (mp.players.local == entity) {
|
||||
if (!endless) {
|
||||
animationBreakTimer = setInterval(() => breakAnimation(name), 120000);
|
||||
}
|
||||
|
||||
if (!loop) {
|
||||
let a = setInterval(function () {
|
||||
mp.events.callRemote("CLIENT:ClearAnimationData", true);
|
||||
|
||||
clearInterval(a);
|
||||
mp.game.wait(500);
|
||||
mp.events.callRemote("CLIENT:ClearAnimationData", true);
|
||||
}, duration);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user