Only set collisions and invincible if NOT IV

This commit is contained in:
Vortrex
2021-07-14 19:23:07 -05:00
parent 7cc4f575de
commit aadff4f8e9

View File

@@ -185,8 +185,10 @@ function setLocalPlayerControlState(controlState, cursorState = false) {
logToConsole(LOG_DEBUG, `[VRR.Utilities] Setting control state to ${controlState} (Cursor: ${cursorState})`);
controlsEnabled = controlState;
localPlayer.invincible = true;
localPlayer.collisionsEnabled = controlState;
localPlayer.invincible = false;
if(getGame() != GAME_GTA_IV) {
localPlayer.collisionsEnabled = controlState;
localPlayer.invincible = false;
}
}
// ===========================================================================