This commit is contained in:
lifestorm
2024-08-04 23:12:27 +03:00
parent 0e770b2b49
commit ba1fc01b16
7084 changed files with 2173495 additions and 14 deletions

View File

@@ -0,0 +1,32 @@
--[[
| This file was obtained through the combined efforts
| of Madbluntz & Plymouth Antiquarian Society.
|
| Credits: lifestorm, Gregory Wayne Rossel JR.,
| Maloy, DrPepper10 @ RIP, Atle!
|
| Visit for more: https://plymouth.thetwilightzone.ru/
--]]
function PLUGIN:InitializedPlugins()
for model, data in pairs(ix.container.stored) do
model = model:lower()
local invType = "container:" .. model
if (ix.item.inventoryTypes[invType]) then
local uniqueID = string.Replace(data.name:lower(), " ", "_")
ix.item.Register(uniqueID, "base_containers", false, nil, true)
if (ix.item.list[uniqueID]) then
ix.item.list[uniqueID].name = data.name
ix.item.list[uniqueID].description = data.description
ix.item.list[uniqueID].model = Model(model)
ix.item.list[uniqueID].width = math.max(1, math.floor(data.width * 0.5))
ix.item.list[uniqueID].height = math.max(1, math.floor(data.height * 0.5))
ix.item.list[uniqueID].invType = invType
end
end
end
end