Remove cam funcs from MexUI input set

This commit is contained in:
Vortrex
2021-07-13 00:57:36 -05:00
parent 8a05117bdf
commit 1acb731e5c

View File

@@ -287,14 +287,14 @@ mexui.isAnyWindowShown = function()
mexui.setInput = function(showInput) mexui.setInput = function(showInput)
{ {
gui.showCursor(showInput, !showInput); gui.showCursor(showInput, !showInput);
if(gta.game != GAME_GTA_IV) { //if(gta.game != GAME_GTA_IV) {
if(localPlayer) // if(localPlayer)
{ // {
if(showInput) // if(showInput)
gta.setCameraLookAt(new Vec3(gta.cameraMatrix.m41, gta.cameraMatrix.m42, gta.cameraMatrix.m43), localPlayer.position, false); // gta.setCameraLookAt(new Vec3(gta.cameraMatrix.m41, gta.cameraMatrix.m42, gta.cameraMatrix.m43), localPlayer.position, false);
else // else
gta.restoreCamera(false); // gta.restoreCamera(false);
} // }
} //}
}; };