Need help: Urgent. Willing to pay minimal for fix.

Alright, I don’t know what the -eff is up with this…
This is in my addshipments.lua and the gundealer isn’t getting ANY of these shipments…


CustomShipments = {}
function AddCustomShipment(name, model, entity, price, Amount_of_guns_in_one_shipment, Sold_seperately, price_seperately, noshipment, classes, shipmodel)
	if not name or not model or not entity or not price or not Amount_of_guns_in_one_shipment or (Sold_seperately and not price_seperately) then
		local text = "One of the custom shipments is wrongly made! Attempt to give name of the wrongly made shipment!(if it's nil then I failed):
" .. tostring(name)
		print(text)
		hook.Add("PlayerSpawn", "ShipmentError", function(ply)
			if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end)		
		return
	end
	if not util.IsValidModel(model) then
		local text = "The model of shipment "..name.." is incorrect! cannot create custom shipment!"
		print(text) 
		hook.Add("PlayerSpawn", "ShipmentError", function(ply)
			if ply:IsAdmin() then ply:ChatPrint("WARNING: "..text) end end)		
		return
	end
	local AllowedClasses = classes or {} // if classes isn't entered then anyone
	if not classes then
		for k,v in pairs(team.GetAllTeams()) do
			table.insert(AllowedClasses, k)
		end
	end
	local price = tonumber(price)
	local shipmentmodel = shipmodel or "models/Items/item_item_crate.mdl"
	table.insert(CustomShipments, {name = name, model = model, entity = entity, price = price, weight = 5, amount = Amount_of_guns_in_one_shipment, seperate = Sold_seperately, pricesep = price_seperately, noship = noshipment, allowed = AllowedClasses, shipmodel = shipmentmodel})
end

/*
HOW TO ADD CUSTOM SHIPMENTS:
AddCustomShipment("<Name of the shipment(no spaces)>"," <the model that the shipment spawns(should be the world model...)>", "<the classname of the weapon>", <the price of one shipment>, <how many guns there are in one shipment>, <OPTIONAL: true/false sold seperately>, <OPTIONAL: price when sold seperately>, < true/false OPTIONAL: /buy only = true> , OPTIONAL which classes can buy the shipment, OPTIONAL: the model of the shipment)

Notes:
MODEL: you can go to Q and then props tab at the top left then search for w_ and you can find all world models of the weapons!
CLASSNAME OF THE WEAPON
there are half-life 2 weapons you can add:
weapon_pistol
weapon_smg1
weapon_ar2
weapon_rpg
weapon_crowbar
weapon_physgun
weapon_357
weapon_crossbow
weapon_slam
weapon_bugbait
weapon_frag
weapon_physcannon
weapon_shotgun
gmod_tool

But you can also add the classnames of Lua weapons by going into the weapons/ folder and look at the name of the folder of the weapon you want.
Like the player possessor swep in addons/Player Possessor/lua/weapons You see a folder called weapon_posessor 
This means the classname is weapon_posessor

YOU CAN ADD ITEMS/ENTITIES TOO! but to actually make the entity you have to press E on the thing that the shipment spawned, BUT THAT'S OK!
YOU CAN MAKE GUNDEALERS ABLE TO SELL MEDKITS!

true/false: Can the weapon be sold seperately?(with /buy name) if you want yes then say true else say no

the price of sold seperate is the price it is when you do /buy name. Of course you only have to fill this in when sold seperate is true.


EXAMPLES OF CUSTOM SHIPMENTS(remove the // to activate it): */

//AddCustomShipment("HL2pistol", "models/weapons/W_pistol.mdl", "weapon_pistol", 500, 10, false, 200, false, {TEAM_GUN, TEAM_MEDIC})

--EXAMPLE OF AN ENTITY(in this case a medkit)
--AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, false, 10, false, {TEAM_GUN}, "models/props_c17/oildrum001_explosive.mdl")
--EXAMPLE OF A BOUNCY BALL:   		NOTE THAT YOU HAVE TO PRESS E REALLY QUICKLY ON THE BOMB OR YOU'LL EAT THE BALL LOL
--AddCustomShipment("bball", "models/Combine_Helicopter/helicopter_bomb01.mdl", "sent_ball", 100, 10, true, 10, true)
-- ADD CUSTOM SHIPMENTS HERE(next line):
AddCustomShipment("Brass Knuckles", "models/weapons/w_brass_t.mdl", "umbrella_brass", false, 75, false, {TEAM_GUN})
AddCustomShipment("Kabar", "models/weapons/w_knifk_t.mdl", "umbrella_knife", false, 80, false, {TEAM_GUN})
AddCustomShipment("Glock 30", "models/weapons/w_pist_glock30.mdl", "umbrella_glock30", 1100, 10, true, 125, false, {TEAM_GUN})
AddCustomShipment("Beretta 92FS", "models/weapons/w_pist_b228.mdl", "umbrella_92fs", 1350, 10, true, 150, false, {TEAM_GUN})
AddCustomShipment("Raging Bull", "models/weapons/w_pist_reagle.mdl", "umbrella_revolver", 2500, 10, true, 300, false, {TEAM_GUN})
AddCustomShipment("Colt Python", "models/weapons/w_pist_seagle.mdl", "umbrella_revolver2", 2200, 10, true, 275, false, {TEAM_GUN})
AddCustomShipment("Remmington Pump Shotgun", "models/weapons/w_shot_r3super90.mdl", "umbrella_pumpshotgun", 4400, 10, true, 475, false, {TEAM_GUN})
AddCustomShipment("Double Barrel Shotgun", "models/weapons/w_shot_s3super90.mdl", "umbrella_pumpshotguns", 3900, 10, true, 425, false, {TEAM_GUN})
AddCustomShipment("Single-Shot AK47", "models/weapons/w_sif_ak47.mdl", "umbrella_ak47l", 5100, 10, true, 550, false, {TEAM_GUN})
AddCustomShipment("Colt AR15", "models/weapons/w_rif_m4a2.mdl", "umbrella_ar15", 5300, 10, true, 575, false, {TEAM_GUN})
AddCustomShipment("Supressed FiveSeven", "models/weapons/w_pist_fivesever.mdl", "umbrella_fivesevens", 1200, 10, true, 135, false, {TEAM_GUN})
AddCustomShipment("Glock 18 Compact", "models/weapons/w_pist_alock18.mdl", "umbrella_glock18c", 1900, 10, true, 2125, false, {TEAM_GUN})
AddCustomShipment("Automatic AK47", "models/weapons/w_rif_ak47.mdl", "umbrella_ak47", 6000, 10, true, 625, false, {TEAM_GUN})
AddCustomShipment("Supressed AKS74U", "models/weapons/w_smg_aks.mdl", "umbrella_aks74u", 5750, 10, true, 600, false, {TEAM_GUN})
AddCustomShipment("Colt M4A1", "models/weapons/w_sif_m4a1.mdl", "umbrella_m4a1", 6250, 10, true, 650, false, {TEAM_GUN})
AddCustomShipment("P90", "models/weapons/w_uns_p90.mdl", "umbrella_p90", 5500, 10, true, 575, false, {TEAM_GUN})
AddCustomShipment("HK G36C EcoTech", "models/weapons/w_rif_36e.mdl", "umbrella_g36ce", 7000, 10, true, 750, false, {TEAM_GUN})
AddCustomShipment("HK MP5SD6", "models/weapons/w_smg_rp5.mdl", "umbrella_mp5sd", 5550, 10, true, 575, false, {TEAM_GUN})
AddCustomShipment("Supressed IMI Mini-Uzi", "models/weapons/w_smg_mmp.mdl", "umbrella_mac10", 5575, 10, true, 580, false, {TEAM_GUN})
AddCustomShipment("Automatic SG552", "models/weapons/w_rif_sg5e.mdl", "umbrella_sig552e", 5750, 10, true, 600, false, {TEAM_GUN})
AddCustomShipment("Automatic Supressed SG552", "models/weapons/w_rif_sgsa.mdl", "umbrella_sig552scopeds", 7650, 0, true, 800, false, {TEAM_GUN})
AddCustomShipment("M16A4", "models/weapons/w_rif_m4a2.mdl", "umbrella_m16a4", 6100, 10, true, 645, false, {TEAM_GUN})
AddCustomShipment("Alcohol", "models/drug_mod/alcohol_can.mdl", "durgz_alcohol", 450, 10, true, 50, true, {TEAM_DRUG})
AddCustomShipment("Aspirin", "models/jaanus/aspbtl.mdl", "durgz_aspirin", 250, 10, true, 300, true, {TEAM_DRUG})
AddCustomShipment("Cigarette", "models/boxopencigshib.mdl", "durgz_cigarette", 450, 10, true, 50, true, {TEAM_DRUG})
AddCustomShipment("Cocaine", "models/cocn.mdl", "durgz_cocaine", 3600, 10, true, 400, true, {TEAM_DRUG})
AddCustomShipment("Heroine", "models/katharsmodels/syringe_out/syringe_out.mdl", "durgz_heroine", 450, 10, true, 50, true, {TEAM_DRUG})
AddCustomShipment("Lsd", "models/drug_mod/alcohol_can.mdl", "durgz_lsd", 2700, 10, true, 300, true, {TEAM_DRUG})
AddCustomShipment("Mushroom", "models/ipha/mushroom_small.mdl", "durgz_mushroom", 2800, 10, true, 300, true, {TEAM_DRUG})
AddCustomShipment("Water", "models/drug_mod/the_bottle_of_water.mdl", "durgz_water", 80, 10, true, 10, true, {TEAM_DRUG})
AddCustomShipment("Weed", "models/katharsmodels/contraband/zak_wiet/zak_wiet.mdl", "durgz_weed", 850, 10, true, 100, true, {TEAM_DRUG})

AddCustomShipment("Lockpick", "models/weapons/w_crowbar.mdl", "lockpick", 5000, 10, true, 500, false, {TEAM_THIEF})
AddCustomShipment("Keypad Cracker", "models/weapons/w_c4.mdl", "keypad_cracker", 5000, 10, true, 500, false, {TEAM_THIEF})

AddEntity("Money printer", "money_printer", "models/props_c17/consolebox01a.mdl", 1000, 2, "/buymoneyprinter")


:frowning: No help?

Use

 codes, then I can probably help you, it's a bit hard to read from this point.

[editline]26th July 2011[/editline]

also you can swear here, we don't give a fuck