From 236689452e19ffacd28196ba02f3557b09e64ad2 Mon Sep 17 00:00:00 2001 From: Jim Shield Date: Sun, 28 Jan 2024 19:17:57 +0000 Subject: [PATCH] custom stash slot sizes at "register" --- wrapper.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wrapper.lua b/wrapper.lua index a2c82d1..5c217d2 100644 --- a/wrapper.lua +++ b/wrapper.lua @@ -1326,13 +1326,13 @@ function invImg(item) return imgLink end -function registerStash(name, label) +function registerStash(name, label, slots, weight) if GetResourceState(OXInv):find("start") then --print("Registering OX Stash:", name, label) - exports[OXInv]:RegisterStash(name, label, 50, 4000000) + exports[OXInv]:RegisterStash(name, label, slots or 50, weight or 4000000) elseif GetResourceState(QSInv):find("start") then --print("Registering QS Stash:", name, label) - exports[QSInv]:RegisterStash(name, 50, 4000000) + exports[QSInv]:RegisterStash(name, slots or 50, weight or 4000000) end end -- IN NO WAY PERFECT --