try taxifahrer & add new Inputdesign(noch nicht ready)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user