Update server.lua

This commit is contained in:
MrNewb committed 2025-06-10 01:30:57 -04:00
1 parent 4c16e432ef
commit 0a4795430d
1 file changed
+4 -4
@@ -133,12 +133,12 @@ Inventory.GetItemBySlot = function(src, slot)
for _, v in pairs(playerInv) do for _, v in pairs(playerInv) do
if v.slot == slot then if v.slot == slot then
return { return {
weight = v.weight,
name = v.name, name = v.name,
count = v.count,
weight = v.weight or 0,
metadata = v.metadata, metadata = v.metadata,
slot = v.slot, slot = v.slot,
label = v.label, label = v.label
count = v.amount
} }
end end
end end
@@ -158,7 +158,7 @@ end
---This will open the specified stash for the src passed. ---This will open the specified stash for the src passed.
---@param src number ---@param src number
---@param _type string ---@param _type string
---@param id number||string ---@param id number|string
---@return nil ---@return nil
Inventory.OpenStash = function(src, _type, id) Inventory.OpenStash = function(src, _type, id)
_type = _type or "stash" _type = _type or "stash"