diff --git a/ReallifeGamemode.Client/inputhelper/index.ts b/ReallifeGamemode.Client/inputhelper/index.ts index fb1e5f4c..27bd67d6 100644 --- a/ReallifeGamemode.Client/inputhelper/index.ts +++ b/ReallifeGamemode.Client/inputhelper/index.ts @@ -33,7 +33,7 @@ export default class InputHelper { mp.gui.chat.push("RENDER REGISTRIEREN"); mp.events.add("render", () => { - game.ui.sendChatMessage("render in inputhelper"); + game.ui.sendChatMessage("render in inputhelper - state = " + InputHelper.active); if (InputHelper.active) { mp.game.controls.disableAllControlActions(0); @@ -44,26 +44,18 @@ export default class InputHelper { }) } - private disableControls() { - //for (var x = 0; x < 358; x++) { - // mp.game.controls.disableControlAction(1, x, true); - //} - - - } - show() { if (this.created) return; - this.data.InInput = true; - this.created = true; - this.browser = mp.browsers.new('package://assets/html/inputhelper/index.html'); - InputHelper.active = true; if (!InputHelper.timerStarted) { InputHelper.timerStarted = true; this.startDisableTimer(); - } + + this.data.InInput = true; + this.created = true; + this.browser = mp.browsers.new('package://assets/html/inputhelper/index.html'); + InputHelper.active = true; } private finish() {