From dc2c156eb9c472a71d356a8373d480b8b8581f88 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Mon, 7 Mar 2022 07:38:08 -0600 Subject: [PATCH] Fix weapon slot util for IV --- 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 260cc2ff..1c761b69 100644 --- a/scripts/client/utilities.js +++ b/scripts/client/utilities.js @@ -404,7 +404,11 @@ function clearLocalPedState() { // =========================================================================== function getWeaponSlot(weaponId) { - return weaponSlots[game.game][weaponId]; + if(getGame() == VRR_GAME_GTA_IV) { + return false; + } + + return weaponSlots[getGame()][weaponId]; } // ===========================================================================