diff --git a/scripts/client/utilities.js b/scripts/client/utilities.js index f5f3198e..34f822e5 100644 --- a/scripts/client/utilities.js +++ b/scripts/client/utilities.js @@ -21,7 +21,7 @@ function setLocalPlayerControlState(controlState, cursorState = false) { if (getGame() == V_GAME_GTA_III || getGame() == V_GAME_GTA_VC) { game.SET_PLAYER_CONTROL(game.GET_PLAYER_ID(), boolToInt(controlState)); } else if (getGame() <= V_GAME_GTA_IV) { - setElementCollisionsEnabled(localPlayer, controlState); + setElementCollisionsEnabled(localPlayer.id, controlState); setPedInvincible(localPlayer, true); } } @@ -548,6 +548,10 @@ function processGameSpecifics() { game.clearMessages(); } + if (getGame() == V_GAME_GTA_IV || getGame() == V_GAME_GTA_IV_EFLC) { + gta.terminateScript("mpcellphonemain"); + } + destroyAutoCreatedPickups(); }