From d1a3087a5e8132e0cba917080d3971e8047482de Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Sat, 26 Feb 2022 21:32:20 -0600 Subject: [PATCH] Don't set collisions on GTA IV when setting control state --- 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 478530ee..62dd0f53 100644 --- a/scripts/client/utilities.js +++ b/scripts/client/utilities.js @@ -188,8 +188,10 @@ function setLocalPlayerControlState(controlState, cursorState = false) { game.SET_PLAYER_CONTROL(localClient.index, boolToInt(controlState)); } - localPlayer.collisionsEnabled = controlState; - localPlayer.invincible = true; + if(getGame() != VRR_GAME_GTA_IV) { + localPlayer.collisionsEnabled = controlState; + localPlayer.invincible = true; + } } // ===========================================================================