mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 05:43:46 +03:00
32 lines
877 B
Lua
32 lines
877 B
Lua
|
|
--[[
|
||
|
|
| 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/
|
||
|
|
--]]
|
||
|
|
|
||
|
|
|
||
|
|
ITEM.name = "Large Bag"
|
||
|
|
ITEM.description = "A backpack with the Combine insignia upon it."
|
||
|
|
ITEM.invWidth = 4
|
||
|
|
ITEM.invHeight = 4
|
||
|
|
ITEM.bodygroup = "bag"
|
||
|
|
ITEM.model = Model("models/willardnetworks/clothingitems/backpack.mdl")
|
||
|
|
ITEM.outfitCategory = "Bag"
|
||
|
|
ITEM.noOpen = true
|
||
|
|
|
||
|
|
ITEM.hooks.View = function(item, data)
|
||
|
|
local client = item.player
|
||
|
|
local inventory = client:GetCharacter():GetInventory()
|
||
|
|
local items = inventory:GetItemsByUniqueID(item.uniqueID)
|
||
|
|
if (#items > 1) then
|
||
|
|
table.SortByMember(items, "id", true)
|
||
|
|
if (items[1].id != item.id) then
|
||
|
|
return false
|
||
|
|
end
|
||
|
|
end
|
||
|
|
end
|