Entity fix and stash update

Slimed OpenStash down to just an src and id instead of needing duplicate data.

Was not sure if this affects newb so im throwing it in a pr.
This commit is contained in:
gononono64 committed 2025-05-19 07:20:23 -05:00
1 parent 68e81b720a
commit 0d606bc859
10 files changed
+109 -18

No files matched your search

+11
View File
@@ -4,6 +4,7 @@ local sloth = exports['ps-inventory']
local registeredShops = {}
Inventory = Inventory or {}
Inventory.Stashes = Inventory.Stashes or {}
---This will add an item, and return true or false based on success
---@param src number
@@ -106,6 +107,16 @@ end
---@param coords table
---@return boolean
Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coords)
if Inventory.Stashes[id] then return true end
Inventory.Stashes[id] = {
id = id,
label = label,
slots = slots,
weight = weight,
owner = owner,
groups = groups,
coords = coords
}
return true
end