Only set collisions and invincible if NOT IV
This commit is contained in:
@@ -185,8 +185,10 @@ function setLocalPlayerControlState(controlState, cursorState = false) {
|
|||||||
logToConsole(LOG_DEBUG, `[VRR.Utilities] Setting control state to ${controlState} (Cursor: ${cursorState})`);
|
logToConsole(LOG_DEBUG, `[VRR.Utilities] Setting control state to ${controlState} (Cursor: ${cursorState})`);
|
||||||
controlsEnabled = controlState;
|
controlsEnabled = controlState;
|
||||||
localPlayer.invincible = true;
|
localPlayer.invincible = true;
|
||||||
localPlayer.collisionsEnabled = controlState;
|
if(getGame() != GAME_GTA_IV) {
|
||||||
localPlayer.invincible = false;
|
localPlayer.collisionsEnabled = controlState;
|
||||||
|
localPlayer.invincible = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user