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,8 +188,10 @@ function setLocalPlayerControlState(controlState, cursorState = false) {
game.SET_PLAYER_CONTROL(localClient.index, boolToInt(controlState)); game.SET_PLAYER_CONTROL(localClient.index, boolToInt(controlState));
} }
localPlayer.collisionsEnabled = controlState; if(getGame() != VRR_GAME_GTA_IV) {
localPlayer.invincible = true; localPlayer.collisionsEnabled = controlState;
localPlayer.invincible = true;
}
} }
// =========================================================================== // ===========================================================================