try taxifahrer & add new Inputdesign(noch nicht ready)

This commit is contained in:
Michael
2020-07-15 15:25:55 +02:00
parent dd5292e3db
commit 441b59d262
5 changed files with 229 additions and 53 deletions

View File

@@ -23,13 +23,16 @@ export default class InputHelper {
this.getValue = this.getValue.bind(this);
this.value = undefined;
const disableInput = [157, 158, 159, 32, 33, 34, 35];
mp.events.add('render', this.disableControls);
mp.events.add("render", () => {
mp.game.controls.disableAllControlActions(0);
});
}
private disableControls() {
for (var x = 0; x < 358; x++) {
mp.game.controls.disableControlAction(32, x, true);
mp.game.controls.disableControlAction(1, x, true);
}
}