From 1333bc47aeda517d217f56e4ec82ad01dd08d940 Mon Sep 17 00:00:00 2001 From: AlmTech Date: Sat, 14 Sep 2019 16:07:39 +0200 Subject: [PATCH] Added item stuff --- gamemode/engine/lib/sh_items.lua | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 gamemode/engine/lib/sh_items.lua diff --git a/gamemode/engine/lib/sh_items.lua b/gamemode/engine/lib/sh_items.lua new file mode 100644 index 0000000..7746ac2 --- /dev/null +++ b/gamemode/engine/lib/sh_items.lua @@ -0,0 +1,23 @@ +-- __ _ _______ _ __ +-- / / /\ | | |__ __| | | \ \ +-- / / / \ | |_ __ ___ | | ___ ___| |__ \ \ +-- < < / /\ \ | | '_ ` _ \| |/ _ \/ __| '_ \ > > +-- \ \ / ____ \| | | | | | | | __/ (__| | | | / / +-- \_\ /_/ \_\_|_| |_| |_|_|\___|\___|_| |_| /_/ + +Quantum.Item = {} +Quantum.Items = {} + +function Quantum.Item.Create( id, args ) + local item = { + name = args.name, -- items name + desc = args.desc, -- items description + icon = args.icon, -- items icon + stack = args.stack, -- items max stack size + soulbound = args.soulbound, -- if item could be dropped/traded to other players + rarity = args.rarity, -- rarity of the item + usefunction = args.usefunction, -- use function + consumefunction = args.consumefunction, --consume function + equipfunction = args.equipfunction -- equip function + } +end \ No newline at end of file