blob: 47bf1d0174b094918f2060df69e736fef8e64fc7 (
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
26
|
ITEM = {}
ITEM.Name = "Baits"
ITEM.Description = "Something you can plant!"
ITEM.Icon = "test.png"
ITEM.UniqueData = false
local drop1 = function(player)
print("Drop 1 called")
end
local dropall = function(player)
print("Drop all called")
end
local dropx = function(player)
print("Drop x called")
end
ITEM.Actions = {}
ITEM.Actions["Drop"] = {}
ITEM.Actions["Drop"]["Drop 1"] = drop1
ITEM.Actions["Drop"]["Drop all"] = dropall
ITEM.Actions["Drop"]["Drop X"] = dropx
GMS.RegisterResource(ITEM)
|