From aadff4f8e994148b29ec644d343dd1956c696a6d Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Wed, 14 Jul 2021 19:23:07 -0500 Subject: [PATCH] Only set collisions and invincible if NOT IV --- scripts/client/utilities.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/client/utilities.js b/scripts/client/utilities.js index 9e138c47..84f41a7b 100644 --- a/scripts/client/utilities.js +++ b/scripts/client/utilities.js @@ -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; + } } // ===========================================================================