summaryrefslogtreecommitdiff
path: root/gamemode/itemsystem/items/anexample.lua
blob: 19cdbd7308e833d1fbe533e896427ee0b83cb85e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--This file is to help developers add new items to the game

ITEM = {}

--The name of this item
ITEM.Name = "An Example"

--A description that shows up when hovering over the item in the inventory
ITEM.Description = "Why did I even write this? No one will ever read it!"

--The icon that this item users, relative to the gmsurvival/content/materials directory
ITEM.Icon = "test.png"

--If this item has "unique data", for example batteries that run out of charge
ITEM.UniqueData = false

--Be sure to register when everything is said and done!
GMS.RegisterResource(ITEM)