mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 13:53:45 +03:00
Upload
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
--[[
|
||||
| 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
|
||||
Reference in New Issue
Block a user