diff options
Diffstat (limited to 'gamemode/itemsystem/items/herbs.lua')
| -rw-r--r-- | gamemode/itemsystem/items/herbs.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/gamemode/itemsystem/items/herbs.lua b/gamemode/itemsystem/items/herbs.lua new file mode 100644 index 0000000..9db5417 --- /dev/null +++ b/gamemode/itemsystem/items/herbs.lua @@ -0,0 +1,26 @@ +ITEM = {} + +ITEM.Name = "Herbs" +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) |
