Don't allow IV cellphone

This commit is contained in:
Vortrex
2023-01-11 00:03:29 -06:00
parent c87805a5fe
commit 7b7ab19a17

View File

@@ -21,7 +21,7 @@ function setLocalPlayerControlState(controlState, cursorState = false) {
if (getGame() == V_GAME_GTA_III || getGame() == V_GAME_GTA_VC) { if (getGame() == V_GAME_GTA_III || getGame() == V_GAME_GTA_VC) {
game.SET_PLAYER_CONTROL(game.GET_PLAYER_ID(), boolToInt(controlState)); game.SET_PLAYER_CONTROL(game.GET_PLAYER_ID(), boolToInt(controlState));
} else if (getGame() <= V_GAME_GTA_IV) { } else if (getGame() <= V_GAME_GTA_IV) {
setElementCollisionsEnabled(localPlayer, controlState); setElementCollisionsEnabled(localPlayer.id, controlState);
setPedInvincible(localPlayer, true); setPedInvincible(localPlayer, true);
} }
} }
@@ -548,6 +548,10 @@ function processGameSpecifics() {
game.clearMessages(); game.clearMessages();
} }
if (getGame() == V_GAME_GTA_IV || getGame() == V_GAME_GTA_IV_EFLC) {
gta.terminateScript("mpcellphonemain");
}
destroyAutoCreatedPickups(); destroyAutoCreatedPickups();
} }