This commit is contained in:
2021-04-06 16:52:14 +02:00
parent 67b5b8d5f0
commit 329667f4fb

View File

@@ -92,14 +92,14 @@
mp.players.exists(entity) && 0 !== entity.handle && entity.taskPlayAnim(animDict, animName, 8, 1, duration, parseInt(flag), 0, !1, !1, !1) mp.players.exists(entity) && 0 !== entity.handle && entity.taskPlayAnim(animDict, animName, 8, 1, duration, parseInt(flag), 0, !1, !1, !1)
}); });
if (entity == mp.players.local) { //block player from using LMB to attack
blockInput = true;
}
let pair = pairData.find(pair => pair.from == string); let pair = pairData.find(pair => pair.from == string);
if (!pair) if (!pair)
return; return;
if (entity == mp.players.local) { //block player from using LMB to attack
blockInput = true;
}
let a = setInterval(function () { let a = setInterval(function () {
mp.events.callRemote("CLIENT:AnimPairTransition", entity, pair.transitionTo); mp.events.callRemote("CLIENT:AnimPairTransition", entity, pair.transitionTo);
clearInterval(a); clearInterval(a);