Add some IV support
This commit is contained in:
14
third-party/mexui/mexui.js
vendored
14
third-party/mexui/mexui.js
vendored
@@ -287,12 +287,14 @@ mexui.isAnyWindowShown = function()
|
||||
mexui.setInput = function(showInput)
|
||||
{
|
||||
gui.showCursor(showInput, !showInput);
|
||||
if(localPlayer)
|
||||
{
|
||||
if(showInput)
|
||||
gta.setCameraLookAt(new Vec3(gta.cameraMatrix.m41, gta.cameraMatrix.m42, gta.cameraMatrix.m43), localPlayer.position, false);
|
||||
else
|
||||
gta.restoreCamera(false);
|
||||
if(gta.game != GAME_GTA_IV) {
|
||||
if(localPlayer)
|
||||
{
|
||||
if(showInput)
|
||||
gta.setCameraLookAt(new Vec3(gta.cameraMatrix.m41, gta.cameraMatrix.m42, gta.cameraMatrix.m43), localPlayer.position, false);
|
||||
else
|
||||
gta.restoreCamera(false);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user