aboutsummaryrefslogtreecommitdiff
path: root/gamemode/shared/itemsystem/exampleitem.lua
blob: f39a97985a0ad885f058dd917b8b804dd7a91a01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--[[
    An example item
]]
local item = {}

item.Name = "Test item"

item.Serialize = function(self)
    print("Trying to serailize!")
    return ""
end

item.DeSerialize = function(self,string)
    print("Trying to deserialize!")
    return self
end

item.Shape = {
    {true},
    {true},
    {true},
}

print("Hello from exampleitem.lua")
ART.RegisterItem(item)