touchup
This commit is contained in:
1 parent
baf1c3b2a9
commit
866283162b
10 files changed
+23
-22
No files matched your search
@@ -87,7 +87,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"
|
||||||
@@ -95,8 +95,8 @@ Inventory.OpenStash = function(src, _type, id)
|
|||||||
return false, Prints.Error("This Inventory Has Not Been Bridged For A Stash Feature.")
|
return false, Prints.Error("This Inventory Has Not Been Bridged For A Stash Feature.")
|
||||||
end
|
end
|
||||||
|
|
||||||
--This will register a stash
|
---This will register a stash
|
||||||
---@param id number||string
|
---@param id number|string
|
||||||
---@param label string
|
---@param label string
|
||||||
---@param slots number
|
---@param slots number
|
||||||
---@param weight number
|
---@param weight number
|
||||||
@@ -104,7 +104,7 @@ end
|
|||||||
---@param groups table
|
---@param groups table
|
||||||
---@param coords table
|
---@param coords table
|
||||||
---@return boolean
|
---@return boolean
|
||||||
---@return string
|
---@return string|number
|
||||||
Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coords)
|
Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coords)
|
||||||
if Inventory.Stashes[id] then return true, id end
|
if Inventory.Stashes[id] then return true, id end
|
||||||
Inventory.Stashes[id] = {
|
Inventory.Stashes[id] = {
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ end
|
|||||||
|
|
||||||
|
|
||||||
---This will register a stash
|
---This will register a stash
|
||||||
---@param id number||string
|
---@param id number|string
|
||||||
---@param label string
|
---@param label string
|
||||||
---@param slots number
|
---@param slots number
|
||||||
---@param weight number
|
---@param weight number
|
||||||
@@ -116,7 +116,7 @@ end
|
|||||||
---@param groups table
|
---@param groups table
|
||||||
---@param coords table
|
---@param coords table
|
||||||
---@return boolean
|
---@return boolean
|
||||||
---@return string
|
---@return string|number
|
||||||
Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coords)
|
Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coords)
|
||||||
if Inventory.Stashes[id] then return true, id end
|
if Inventory.Stashes[id] then return true, id end
|
||||||
Inventory.Stashes[id] = {
|
Inventory.Stashes[id] = {
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ Inventory.OpenStash = function(src, _type, id)
|
|||||||
end
|
end
|
||||||
|
|
||||||
---This will register a stash
|
---This will register a stash
|
||||||
---@param id number||string
|
---@param id number|string
|
||||||
---@param label string
|
---@param label string
|
||||||
---@param slots number
|
---@param slots number
|
||||||
---@param weight number
|
---@param weight number
|
||||||
@@ -161,7 +161,7 @@ end
|
|||||||
---@param groups table
|
---@param groups table
|
||||||
---@param coords table
|
---@param coords table
|
||||||
---@return boolean
|
---@return boolean
|
||||||
---@return string
|
---@return string|number
|
||||||
Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coords)
|
Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coords)
|
||||||
if Inventory.Stashes[id] then return true, id end
|
if Inventory.Stashes[id] then return true, id end
|
||||||
if not slots then slots = 30 end
|
if not slots then slots = 30 end
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ Inventory.OpenStash = function(src, _type, id)
|
|||||||
end
|
end
|
||||||
|
|
||||||
---This will register a stash
|
---This will register a stash
|
||||||
---@param id number||string
|
---@param id number|string
|
||||||
---@param label string
|
---@param label string
|
||||||
---@param slots number
|
---@param slots number
|
||||||
---@param weight number
|
---@param weight number
|
||||||
@@ -81,7 +81,7 @@ end
|
|||||||
---@param groups table
|
---@param groups table
|
||||||
---@param coords table
|
---@param coords table
|
||||||
---@return boolean
|
---@return boolean
|
||||||
---@return string
|
---@return string|number
|
||||||
Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coords)
|
Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coords)
|
||||||
if Inventory.Stashes[id] then return true, id end
|
if Inventory.Stashes[id] then return true, id end
|
||||||
Inventory.Stashes[id] = {
|
Inventory.Stashes[id] = {
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ Inventory.OpenStash = function(src, _type, id)
|
|||||||
end
|
end
|
||||||
|
|
||||||
---This will register a stash
|
---This will register a stash
|
||||||
---@param id number||string
|
---@param id number|string
|
||||||
---@param label string
|
---@param label string
|
||||||
---@param slots number
|
---@param slots number
|
||||||
---@param weight number
|
---@param weight number
|
||||||
@@ -161,6 +161,7 @@ end
|
|||||||
---@param groups table
|
---@param groups table
|
||||||
---@param coords table
|
---@param coords table
|
||||||
---@return boolean
|
---@return boolean
|
||||||
|
---@return string|number
|
||||||
Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coords)
|
Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coords)
|
||||||
if Inventory.Stashes[id] then return true, id end
|
if Inventory.Stashes[id] then return true, id end
|
||||||
Inventory.Stashes[id] = {
|
Inventory.Stashes[id] = {
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ end
|
|||||||
---@param groups table
|
---@param groups table
|
||||||
---@param coords table
|
---@param coords table
|
||||||
---@return boolean
|
---@return boolean
|
||||||
---@return string
|
---@return string|number
|
||||||
Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coords)
|
Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coords)
|
||||||
if Inventory.Stashes[id] then return true, id end
|
if Inventory.Stashes[id] then return true, id end
|
||||||
Inventory.Stashes[id] = {
|
Inventory.Stashes[id] = {
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ Inventory.OpenStash = function(src, _type, id)
|
|||||||
end
|
end
|
||||||
|
|
||||||
---This will register a stash
|
---This will register a stash
|
||||||
---@param id number||string
|
---@param id number|string
|
||||||
---@param label string
|
---@param label string
|
||||||
---@param slots number
|
---@param slots number
|
||||||
---@param weight number
|
---@param weight number
|
||||||
@@ -120,7 +120,7 @@ end
|
|||||||
---@param groups table
|
---@param groups table
|
||||||
---@param coords table
|
---@param coords table
|
||||||
---@return boolean
|
---@return boolean
|
||||||
---@return string
|
---@return string|number
|
||||||
Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coords)
|
Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coords)
|
||||||
if Inventory.Stashes[id] then return true, id end
|
if Inventory.Stashes[id] then return true, id end
|
||||||
Inventory.Stashes[id] = {
|
Inventory.Stashes[id] = {
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ Inventory.OpenStash = function(src, _type, id)
|
|||||||
end
|
end
|
||||||
|
|
||||||
---This will register a stash
|
---This will register a stash
|
||||||
---@param id number||string
|
---@param id number|string
|
||||||
---@param label string
|
---@param label string
|
||||||
---@param slots number
|
---@param slots number
|
||||||
---@param weight number
|
---@param weight number
|
||||||
@@ -143,7 +143,7 @@ end
|
|||||||
---@param groups table
|
---@param groups table
|
||||||
---@param coords table
|
---@param coords table
|
||||||
---@return boolean
|
---@return boolean
|
||||||
---@return string
|
---@return string|number
|
||||||
Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coords)
|
Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coords)
|
||||||
if Inventory.Stashes[id] then return true, id end
|
if Inventory.Stashes[id] then return true, id end
|
||||||
Inventory.Stashes[id] = {
|
Inventory.Stashes[id] = {
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ Inventory.OpenStash = function(src, _type, id)
|
|||||||
end
|
end
|
||||||
|
|
||||||
---This will register a stash
|
---This will register a stash
|
||||||
---@param id number||string
|
---@param id number|string
|
||||||
---@param label string
|
---@param label string
|
||||||
---@param slots number
|
---@param slots number
|
||||||
---@param weight number
|
---@param weight number
|
||||||
@@ -156,9 +156,9 @@ end
|
|||||||
---@param groups table
|
---@param groups table
|
||||||
---@param coords table
|
---@param coords table
|
||||||
---@return boolean
|
---@return boolean
|
||||||
---@return string
|
---@return string|number
|
||||||
Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coords)
|
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] = {
|
Inventory.Stashes[id] = {
|
||||||
id = id,
|
id = id,
|
||||||
label = label,
|
label = label,
|
||||||
@@ -168,7 +168,6 @@ Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coor
|
|||||||
groups = groups,
|
groups = groups,
|
||||||
coords = coords
|
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
|
return true, id
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ Inventory.OpenStash = function(src, _type, id)
|
|||||||
end
|
end
|
||||||
|
|
||||||
---This will register a stash
|
---This will register a stash
|
||||||
---@param id number||string
|
---@param id number|string
|
||||||
---@param label string
|
---@param label string
|
||||||
---@param slots number
|
---@param slots number
|
||||||
---@param weight number
|
---@param weight number
|
||||||
@@ -123,8 +123,9 @@ end
|
|||||||
---@param groups table
|
---@param groups table
|
||||||
---@param coords table
|
---@param coords table
|
||||||
---@return boolean
|
---@return boolean
|
||||||
---@return string
|
---@return string|number
|
||||||
Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coords)
|
Inventory.RegisterStash = function(id, label, slots, weight, owner, groups, coords)
|
||||||
|
if Inventory.Stashes[id] then return true, id end
|
||||||
Inventory.Stashes[id] = {
|
Inventory.Stashes[id] = {
|
||||||
id = id,
|
id = id,
|
||||||
label = label,
|
label = label,
|
||||||
|
|||||||
Reference in new issue
Block a user