From ee18d791b94d9a15f9155f8fcd1b5c6b7a178bdf Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Wed, 3 Feb 2021 11:58:36 -0600 Subject: [PATCH] Restore old input logic on MexUI --- third-party/mexui/mexui.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/third-party/mexui/mexui.js b/third-party/mexui/mexui.js index 094d0a80..e3298dc9 100644 --- a/third-party/mexui/mexui.js +++ b/third-party/mexui/mexui.js @@ -287,12 +287,12 @@ mexui.isAnyWindowShown = function() mexui.setInput = function(showInput) { gui.showCursor(showInput, !showInput); - //if(localPlayer) - //{ - // if(showInput) - // gta.setCameraLookAtEntity(new Vec3(gta.cameraMatrix.m41, gta.cameraMatrix.m42, gta.cameraMatrix.m43), localPlayer, false); - // else - // gta.restoreCamera(false); - //} + if(localPlayer) + { + if(showInput) + gta.setCameraLookAt(new Vec3(gta.cameraMatrix.m41, gta.cameraMatrix.m42, gta.cameraMatrix.m43), localPlayer.position, false); + else + gta.restoreCamera(false); + } };