Figured I'd show off one of the finished products. This is something I made up for merchants on my server so they have access to the business menu and all items in it upon opening up their kit, which also included other equipment to help start off their characters. It references a lot of items that are also custom coded, but you can get the jist of what I was going for regardless.
Edit: The line where I included the flags is like the third to last line of the code, just below the long-ass list of items.
Code:
-- Created by NoahtheBoah36 AKA Noah Engelmann
-- Permission to Redistribute/Use/Edit is GRANTED, provided credit is given to the original author.
local ITEM = Clockwork.item:New();
ITEM.name = "kit_merchant";
ITEM.model = "models/props_c17/SuitCase001a.mdl";
ITEM.weight = 0;
ITEM.useText = "Open";
ITEM.business = false;
ITEM.category = "Admin Items";
ITEM.description = "A kit of scripts for a newly created merchant character.";
-- Dropping the item.
function ITEM:OnDrop(player, position) end;
-- Using the item.
function ITEM:OnUse(player, itemEntity)
player:GiveItem(Clockwork.item:CreateInstance("admin_backpack"), true);
player:GiveItem(Clockwork.item:CreateInstance("weapon_knife"), true);
player:GiveItem(Clockwork.item:CreateInstance("weapon_crowbar"), true);
player:GiveItem(Clockwork.item:CreateInstance("sack_of_crowns"), true);
player:GiveItem(Clockwork.item:CreateInstance("sack_of_crowns"), true);
player:GiveItem(Clockwork.item:CreateInstance("sack_of_crowns"), true);
player:GiveItem(Clockwork.item:CreateInstance("orange"), true);
player:GiveItem(Clockwork.item:CreateInstance("water_bottle"), true);
player:GiveItem(Clockwork.item:CreateInstance("bandage"), true);
Clockwork.player:GiveFlags(player, "N")
end;
ITEM:Register();