This commit is contained in:
MrNewb committed 2025-06-07 21:59:03 -04:00
1 parent baf1c3b2a9
commit 866283162b
10 files changed
+23 -22

No files matched your search

+4 -4
View File
@@ -87,7 +87,7 @@ end
---This will open the specified stash for the src passed.
---@param src number
---@param _type string
---@param id number||string
---@param id number|string
---@return nil
Inventory.OpenStash = function(src, _type, id)
_type = _type or "stash"
@@ -95,8 +95,8 @@ Inventory.OpenStash = function(src, _type, id)
return false, Prints.Error("This Inventory Has Not Been Bridged For A Stash Feature.")
end
--This will register a stash
---@param id number||string
---This will register a stash
---@param id number|string
---@param label string
---@param slots number
---@param weight number
@@ -104,7 +104,7 @@ end
---@param groups table
---@param coords table
---@return boolean
---@return string
---@return string|number
Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coords)
if Inventory.Stashes[id] then return true, id end
Inventory.Stashes[id] = {
+2 -2
View File
@@ -108,7 +108,7 @@ end
---This will register a stash
---@param id number||string
---@param id number|string
---@param label string
---@param slots number
---@param weight number
@@ -116,7 +116,7 @@ end
---@param groups table
---@param coords table
---@return boolean
---@return string
---@return string|number
Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coords)
if Inventory.Stashes[id] then return true, id end
Inventory.Stashes[id] = {
+2 -2
View File
@@ -153,7 +153,7 @@ Inventory.OpenStash = function(src, _type, id)
end
---This will register a stash
---@param id number||string
---@param id number|string
---@param label string
---@param slots number
---@param weight number
@@ -161,7 +161,7 @@ end
---@param groups table
---@param coords table
---@return boolean
---@return string
---@return string|number
Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coords)
if Inventory.Stashes[id] then return true, id end
if not slots then slots = 30 end
+2 -2
View File
@@ -73,7 +73,7 @@ Inventory.OpenStash = function(src, _type, id)
end
---This will register a stash
---@param id number||string
---@param id number|string
---@param label string
---@param slots number
---@param weight number
@@ -81,7 +81,7 @@ end
---@param groups table
---@param coords table
---@return boolean
---@return string
---@return string|number
Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coords)
if Inventory.Stashes[id] then return true, id end
Inventory.Stashes[id] = {
@@ -153,7 +153,7 @@ Inventory.OpenStash = function(src, _type, id)
end
---This will register a stash
---@param id number||string
---@param id number|string
---@param label string
---@param slots number
---@param weight number
@@ -161,6 +161,7 @@ end
---@param groups table
---@param coords table
---@return boolean
---@return string|number
Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coords)
if Inventory.Stashes[id] then return true, id end
Inventory.Stashes[id] = {
+1 -1
View File
@@ -129,7 +129,7 @@ end
---@param groups table
---@param coords table
---@return boolean
---@return string
---@return string|number
Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coords)
if Inventory.Stashes[id] then return true, id end
Inventory.Stashes[id] = {
+2 -2
View File
@@ -112,7 +112,7 @@ Inventory.OpenStash = function(src, _type, id)
end
---This will register a stash
---@param id number||string
---@param id number|string
---@param label string
---@param slots number
---@param weight number
@@ -120,7 +120,7 @@ end
---@param groups table
---@param coords table
---@return boolean
---@return string
---@return string|number
Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coords)
if Inventory.Stashes[id] then return true, id end
Inventory.Stashes[id] = {
+2 -2
View File
@@ -135,7 +135,7 @@ Inventory.OpenStash = function(src, _type, id)
end
---This will register a stash
---@param id number||string
---@param id number|string
---@param label string
---@param slots number
---@param weight number
@@ -143,7 +143,7 @@ end
---@param groups table
---@param coords table
---@return boolean
---@return string
---@return string|number
Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coords)
if Inventory.Stashes[id] then return true, id end
Inventory.Stashes[id] = {
+3 -4
View File
@@ -148,7 +148,7 @@ Inventory.OpenStash = function(src, _type, id)
end
---This will register a stash
---@param id number||string
---@param id number|string
---@param label string
---@param slots number
---@param weight number
@@ -156,9 +156,9 @@ end
---@param groups table
---@param coords table
---@return boolean
---@return string
---@return string|number
Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coords)
if Inventory.Stashes[id] then return true end
if Inventory.Stashes[id] then return true, id end
Inventory.Stashes[id] = {
id = id,
label = label,
@@ -168,7 +168,6 @@ Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coor
groups = groups,
coords = coords
}
--exports['qs-inventory']:RegisterStash(src, id, stashSlots, stashWeight) -- this needs to pass source to register, need to plan around this.
return true, id
end
@@ -115,7 +115,7 @@ Inventory.OpenStash = function(src, _type, id)
end
---This will register a stash
---@param id number||string
---@param id number|string
---@param label string
---@param slots number
---@param weight number
@@ -123,8 +123,9 @@ end
---@param groups table
---@param coords table
---@return boolean
---@return string
---@return string|number
Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coords)
if Inventory.Stashes[id] then return true, id end
Inventory.Stashes[id] = {
id = id,
label = label,