From f5a7ec9291a7e26b9f972b4bad9397280ef0b5fb Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Tue, 13 May 2025 21:57:19 +0100 Subject: [PATCH] fix inventory exploit trigger blocking crafting The inventory exploit check when crafting never released crafting so you couldn't craft again until reconnecting or script restart --- shared/crafting.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/shared/crafting.lua b/shared/crafting.lua index 7c8fff4..aac352d 100644 --- a/shared/crafting.lua +++ b/shared/crafting.lua @@ -353,8 +353,8 @@ function makeItem(data) Wait(200) end if isInventoryOpen() then - print("^1Error^7: ^2Inventory is open, you tried to break things") - crafted, crafting = false, false + --print("^1Error^7: ^2Inventory is open, you tried to break things") + crafted, crafting, CraftLock = false, false, false return end if crafted then @@ -368,8 +368,9 @@ function makeItem(data) PlaySoundFromEntity(s.soundId, s.audioName, PlayerPedId(), s.audioRef, true, 0) end if isInventoryOpen() then - print("^1Error^7: ^2Inventory is open, you tried to break things") + --print("^1Error^7: ^2Inventory is open, you tried to break things") crafted, crafting = false, false + crafted, crafting, CraftLock = false, false, false return end if crafting and progressBar({