From 7b7ab19a17aa50c008c0c9118a2d0b8d49b7a432 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Wed, 11 Jan 2023 00:03:29 -0600 Subject: [PATCH] Don't allow IV cellphone --- scripts/client/utilities.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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(); }