aboutsummaryrefslogtreecommitdiff
path: root/gamemode/shared/itemsystem/exampleitem.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/shared/itemsystem/exampleitem.lua')
-rw-r--r--gamemode/shared/itemsystem/exampleitem.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/gamemode/shared/itemsystem/exampleitem.lua b/gamemode/shared/itemsystem/exampleitem.lua
index d2d6ed8..fdc0e9c 100644
--- a/gamemode/shared/itemsystem/exampleitem.lua
+++ b/gamemode/shared/itemsystem/exampleitem.lua
@@ -75,6 +75,11 @@ item.onUnEquip = function(self,who)
print("Aw, I'm being stored :(")
end
+--Technically optional, but item will display as a rock if you don't have it
+item.onDropped = function(self,ent)
+ print("I've been dropped!(BUVVV WUB WUB WUB WUB WUB)")
+end
+
print("Hello from exampleitem.lua")
--Don't forget to register the item!
ART.RegisterItem(item)