Fix some Button Stuff and prolly Cuff break
This commit is contained in:
@@ -87,7 +87,7 @@ export default function animationSync() {
|
||||
mp.events.addDataHandler("AnimationData", (entity, string) => {
|
||||
entity.clearTasksImmediately();
|
||||
if (animationBreakTimer) {
|
||||
clearInterval(animationBreakTimer);
|
||||
clearTimeout(animationBreakTimer);
|
||||
animationBreakTimer = null;
|
||||
}
|
||||
if (string == null) {
|
||||
@@ -109,13 +109,12 @@ export default function animationSync() {
|
||||
|
||||
if (mp.players.local == entity) {
|
||||
if (!endless) {
|
||||
animationBreakTimer = setInterval(() => breakAnimation(name), 120000);
|
||||
animationBreakTimer = setTimeout(() => breakAnimation(name), 120000);
|
||||
}
|
||||
|
||||
if (!loop) {
|
||||
let a = setInterval(function () {
|
||||
clearInterval(a);
|
||||
mp.game.wait(500);
|
||||
let a = setTimeout(function () {
|
||||
clearTimeout(a);
|
||||
mp.events.callRemote("CLIENT:ClearAnimationData", true);
|
||||
}, duration);
|
||||
}
|
||||
@@ -126,7 +125,7 @@ export default function animationSync() {
|
||||
let { animName, msg } = animationBreakMessage.find(c => c.animName == name)
|
||||
|
||||
if (msg)
|
||||
mp.events.call("renderTextOnScreen", msg);
|
||||
mp.events.call("BN_Show", msg);
|
||||
|
||||
clearInterval(animationBreakTimer);
|
||||
animationBreakTimer = null;
|
||||
|
||||
Reference in New Issue
Block a user