Merge branch 'hotfix/medic' into develop

This commit is contained in:
hydrant
2021-04-15 01:50:55 +02:00
5 changed files with 68 additions and 72 deletions

View File

@@ -133,11 +133,14 @@ export default function animationSync() {
mp.events.callRemote("CLIENT:ClearAnimationData", false);
}
const blockInputControls = [12, 13, 14, 15, 22, 24, 25, 37, 261, 262];
mp.events.add("render", () => {
mp.gui.chat.push("blockInput = " + blockInput);
if (blockInput) {
mp.game.controls.disableControlAction(32, 25, true);
mp.game.controls.disableControlAction(32, 24, true);
mp.game.controls.disableControlAction(32, 22, true);
blockInputControls.forEach((ctrl) => {
mp.game.controls.disableControlAction(32, ctrl, true);
});
}
});