mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 21:53:46 +03:00
33 lines
898 B
Lua
33 lines
898 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 = "Sac"
|
|
ITEM.description = "Un gros sac avec l'insigne de l'Union dessus."
|
|
ITEM.category = "Stockage"
|
|
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
|