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
This commit is contained in:
Jim Shield
2025-05-13 21:57:19 +01:00
parent d80ea38a39
commit f5a7ec9291

View File

@@ -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({