From 0b7c96f66a4642502da416cb67a98a71c7513cc0 Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Sat, 31 May 2025 12:12:15 +0100 Subject: [PATCH] Possibly fix QS Stashes wiping at script start --- shared/stashcontrol.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/shared/stashcontrol.lua b/shared/stashcontrol.lua index 181aa7e..aace652 100644 --- a/shared/stashcontrol.lua +++ b/shared/stashcontrol.lua @@ -194,10 +194,10 @@ function openStash(data) else --Fallback to these commands TriggerEvent("inventory:client:SetCurrentStash", data.stash) - TriggerServerEvent("inventory:server:OpenInventory", "stash", data.stash, { - slots = data.slots or 50, - maxWeight = data.maxWeight or 600000 - }) + TriggerServerEvent("inventory:server:OpenInventory", "stash", data.stash, { + slots = data.slots or 50, + maxWeight = data.maxWeight or 600000 + }) end lookEnt(data.coords) @@ -529,9 +529,9 @@ function registerStash(name, label, slots, weight, owner, coords) debugPrint("^6Bridge^7: ^2Registering ^3OX ^2Stash^7:", name, label, owner or nil) exports[OXInv]:RegisterStash(name, label, slots or 50, weight or 4000000, owner or nil) - elseif isStarted(QSInv) then - debugPrint("^6Bridge^7: ^2Registering ^3QS ^2Stash^7:", name, label) - exports[QSInv]:RegisterStash(name, label, slots or 50, weight or 4000000) + --elseif isStarted(QSInv) then + -- debugPrint("^6Bridge^7: ^2Registering ^3QS ^2Stash^7:", name, label) + -- exports[QSInv]:RegisterStash(name, label, slots or 50, weight or 4000000) --elseif isStarted(CoreInv) then -- debugPrint("^6Bridge^7: ^2Registering ^3CoreInv ^2Stash^7:", name, label)