From 0ceb38e8a1f26716fe4756c1cfbdbbedd1fae5f1 Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Wed, 28 Dec 2016 18:46:17 -0600 Subject: Fixed some stuff --- gamemode/itemsystem/items/recipe_maul.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'gamemode/itemsystem/items/recipe_maul.lua') diff --git a/gamemode/itemsystem/items/recipe_maul.lua b/gamemode/itemsystem/items/recipe_maul.lua index 04c78f1..351b57e 100644 --- a/gamemode/itemsystem/items/recipe_maul.lua +++ b/gamemode/itemsystem/items/recipe_maul.lua @@ -1,4 +1,4 @@ - +local ITEM = {} ITEM.Name = "Recipe: Maul" ITEM.Class = "account" ITEM.Desc = "A recipe. Use it to print it on chat!" @@ -7,21 +7,22 @@ ITEM.Icon = Material("wintersurvival2/hud/ws2_icons/icon_recipe.png") function ITEM:OnUse(user) if (CLIENT) then return end - + local rec,item = GetRecipeForItem("Maul") local txt = "Recipe: " - + txt = txt.." RESOURCES(" for a,b in pairs(rec.Resources) do txt=txt..b.." x "..a..", " end txt = txt..")" - + txt = txt.." TOOLS(" for a,b in pairs(rec.Tools) do txt=txt..b.." x "..a..", " end txt = txt..")" - + user:ChatPrint(txt) -end \ No newline at end of file +end +RegisterItem(ITEM) -- cgit v1.2.3-70-g09d2