Don't set collisions on GTA IV when setting control state

This commit is contained in:
Vortrex
2022-02-26 21:32:20 -06:00
parent c55dfd1a2c
commit d1a3087a5e

View File

@@ -188,9 +188,11 @@ function setLocalPlayerControlState(controlState, cursorState = false) {
game.SET_PLAYER_CONTROL(localClient.index, boolToInt(controlState)); game.SET_PLAYER_CONTROL(localClient.index, boolToInt(controlState));
} }
if(getGame() != VRR_GAME_GTA_IV) {
localPlayer.collisionsEnabled = controlState; localPlayer.collisionsEnabled = controlState;
localPlayer.invincible = true; localPlayer.invincible = true;
} }
}
// =========================================================================== // ===========================================================================