Can't Pickup Weapons

On my DarkRP server whenever a gun dealer/black market dealer/pro black market dealer buys a gun nobody can pick it up.

here is the shipments file in darkrpmodification:



/*---------------------------------------------------------------------------
/*---------------------------------------------------------------------------
DarkRP custom shipments and guns
---------------------------------------------------------------------------

This file contains your custom shipments and guns.
This file should also contain shipments and guns from DarkRP that you edited.

Note: If you want to edit a default DarkRP shipment, first disable it in darkrp_config/disabled_defaults.lua
	Once you've done that, copy and paste the shipment to this file and edit it.

The default shipments and guns can be found here:
<TODO: INSERT URL HERE>

For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomShipmentFields


Add shipments and guns under the following line:
---------------------------------------------------------------------------*/
DarkRP.createShipment("Desert eagle", {
	model = "models/weapons/w_pist_deagle.mdl",
	entity = "cstm_pistol_deagle",
	price = 2500,
	amount = 10,
	seperate = true,
	pricesep = 700,
	noship = false,
	allowed = {TEAM_GUN, TEAM_PMD}
})

DarkRP.createShipment("Fiveseven", {
	model = "models/weapons/w_pist_fiveseven.mdl",
	entity = "cstm_pistol_fiveseven",
	price = 1100,
	amount = 10,
	seperate = true,
	pricesep = 400,
	noship = false,
	allowed = {TEAM_GUN, TEAM_PMD}
})

DarkRP.createShipment("Glock", {
	model = "models/weapons/w_pist_glock18.mdl",
	entity = "cstm_pistol_glock18",
	price = 2000,
	amount = 10,
	seperate = true,
	pricesep = 600,
	noship = false,
	allowed = {TEAM_GUN, TEAM_PMD}
})

DarkRP.createShipment("P228", {
	model = "models/weapons/w_pist_p228.mdl",
	entity = "cstm_pistol_p228",
	price = 1500,
	amount = 10,
	seperate = true,
	pricesep = 400,
	noship = false,
	allowed = {TEAM_GUN, TEAM_PMD}
})

DarkRP.createShipment("AK47", {
	model = "models/weapons/w_rif_ak47.mdl",
	entity = "cstm_rif_ak47",
	price = 5450,
	amount = 10,
	seperate = true,
	pricesep = 1200,
	noship = false,
	allowed = {TEAM_GUN, TEAM_PMD}
})

DarkRP.createShipment("MP5", {
	model = "models/weapons/w_smg_mp5.mdl",
	entity = "cstm_smg_mp5",
	price = 4100,
	amount = 10,
	seperate = true,
	pricesep = 900,
	noship = false,
	allowed = {TEAM_GUN, TEAM_PMD}
})

DarkRP.createShipment("Mac 10", {
	model = "models/weapons/w_smg_mac10.mdl",
	entity = "cstm_smg_mac10",
	price = 2500,
	amount = 10,
	seperate = true,
	pricesep = 800,
	noship = false,
	allowed = {TEAM_GUN, TEAM_PMD}
})

DarkRP.createShipment("Pump shotgun", {
	model = "models/weapons/w_shot_m3super90.mdl",
	entity = "cstm_shotgun_m3",
	price = 4750,
	amount = 10,
	seperate = true,
	pricesep = 2000,
	noship = false,
	allowed = {TEAM_GUN, TEAM_PMD}
})

DarkRP.createShipment("Auto shotgun", {
	model = "models/weapons/w_shot_xm1014.mdl",
	entity = "cstm_shotgun_xm1014",
	price = 5950,
	amount = 10,
	seperate = true,
	pricesep = 2500,
	noship = false,
	allowed = {TEAM_GUN, TEAM_PMD}
})

DarkRP.createShipment("Sniper rifle", {
	model = "models/weapons/w_snip_scout.mdl",
	entity = "cstm_sniper_scout",
	price = 4550,
	amount = 10,
	seperate = true,
	pricesep = 2500,
	noship = false,
	allowed = {TEAM_GUN, TEAM_PMD}
})

DarkRP.createShipment("Silenced Sniper rifle", {
	model = "models/weapons/w_snip_g3sg1.mdl",
	entity = "cstm_sniper_g3",
	price = 6750,
	amount = 10,
	seperate = true,
	pricesep = 2500,
	noship = false,
	allowed = {TEAM_GUN, TEAM_PMD}
})

DarkRP.createShipment("AWP", {
	model = "models/weapons/w_snip_awp.mdl",
	entity = "cstm_sniper_awp",
	price = 12500,
	amount = 10,
	seperate = true,
	pricesep = 4500,
	noship = false,
	allowed = {TEAM_PBMD}
})

DarkRP.createShipment("Famas", {
	model = "models/weapons/w_rif_famas.mdl",
	entity = "cstm_rif_famas",
	price = 6800,
	amount = 10,
	seperate = true,
	pricesep = 1600,
	noship = false,
	allowed = {TEAM_GUN, TEAM_PBMD}
})

DarkRP.createShipment("UMP 45", {
	model = "models/weapons/w_smg_ump45.mdl",
	entity = "cstm_smg_ump45",
	price = 5500,
	amount = 10,
	seperate = true,
	pricesep = 1000,
	noship = false,
	allowed = {TEAM_PBMD}
})

DarkRP.createShipment("P90", {
	model = "models/weapons/w_smg_p90.mdl",
	entity = "cstm_smg_p90",
	price = 5500,
	amount = 10,
	seperate = true,
	pricesep = 1000,
	noship = false,
	allowed = {TEAM_PBMD}
})

DarkRP.createShipment("SIG-SG552", {
	model = "models/weapons/w_rif_sg552.mdl",
	entity = "cstm_sniper_sg552",
	price = 9500,
	amount = 10,
	seperate = true,
	pricesep = 3250,
	noship = false,
	allowed = {TEAM_PBMD}
})

DarkRP.createShipment("Galil", {
 model = "models/weapons/w_rif_galil.mdl",
 entity = "cstm_rif_galil",
 price = 8650,
 amount = 10,
 seperate = true,
 pricesep = 2400,
 noship = false,
 allowed = {TEAM_GUN}
})

DarkRP.createShipment("M249", {
	model = "models/weapons/w_mach_m249para.mdl",
	entity = "cstm_rif_m249",
	price = 8250,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_BMD, TEAM_PBMD}
})

DarkRP.createShipment("Phaseblaster Ammo", {
	model = "models/dynamite/dynamite.mdl",
	entity = "item_rpg_round",
	price = 2500,
	amount = 1,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_BMD, TEAM_PBMD}
})

DarkRP.createShipment("Lockpick", {
	model = "models/weapons/w_crowbar.mdl",
	entity = "lockpick",
	price = 1000,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_BMD, TEAM_PBMD}
})

DarkRP.createShipment("Fast Lockpick", {
	model = "models/weapons/w_crowbar.mdl",
	entity = "fast_lockpick",
	price = 3000,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_PBMD}
})

DarkRP.createShipment("Keypad Cracker", {
	model = "models/weapons/w_c4.mdl",
	entity = "keypad_cracker",
	price = 1500,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_BMD, TEAM_PBMD}
})

DarkRP.createShipment("Fast Keypad Cracker", {
	model = "models/weapons/w_c4.mdl",
	entity = "fast_keypad_cracker",
	price = 3500,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_PBMD}
})

DarkRP.createShipment("PhaseBlaster", {
	model = "models/weapons/w_rocket_launcher.mdl",
	entity = "rp_gold_phaseblaster",
	price = 30000,
	amount = 1,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_BMD, TEAM_PBMD}
})

DarkRP.createShipment("Elite PhaseBlaster", {
	model = "models/weapons/w_rocket_launcher.mdl",
	entity = "rp_e_gold_phaseblaster",
	price = 60000,
	amount = 1,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_PBMD}
})

DarkRP.createShipment("PhaseTurtle", {
	model = "models/props/de_tides/vending_turtle.mdl",
	entity = "weapon_phaseturtle",
	price = 40000,
	amount = 5,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_BMD, TEAM_PBMD}
})

DarkRP.createShipment("Elite PhaseTurtle", {
	model = "models/props/de_tides/vending_turtle.mdl",
	entity = "weapon_elite_phaseturtle",
	price = 80000,
	amount = 5,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_PBMD}
})

DarkRP.createShipment("Health Charger", {
	model = "models/props/cs_office/microwave.mdl",
	entity = "ent_health_charger",
	price = 7500,
	amount = 1,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_BMD, TEAM_PBMD}
})

DarkRP.createShipment("Armor Charger", {
	model = "models/props/cs_office/microwave.mdl",
	entity = "ent_armor_charger",
	price = 7500,
	amount = 1,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_BMD, TEAM_PBMD}
})

DarkRP.createShipment("Elite Health Charger", {
	model = "models/props/cs_office/microwave.mdl",
	entity = "ent_health_charger_elite",
	price = 12500,
	amount = 1,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_PBMD}
})

DarkRP.createShipment("Elite Armor Charger", {
	model = "models/props/cs_office/microwave.mdl",
	entity = "ent_armor_charger_elite",
	price = 12500,
	amount = 1,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_PBMD}
})

DarkRP.createShipment("ACOG 4x Scope", {
	model = "models/wystan/attachments/2cog.mdl",
	entity = "upgr_acog",
	price = 2500,
	amount = 5,
	seperate = true,
	pricesep = 500,
	noship = false,
	allowed = {TEAM_BMD, TEAM_PBMD}
})

DarkRP.createShipment("Aimpoint Scope", {
	model = "models/wystan/attachments/aimpoint.mdl",
	entity = "upgr_aimpoint",
	price = 2500,
	amount = 5,
	seperate = true,
	pricesep = 500,
	noship = false,
	allowed = {TEAM_BMD, TEAM_PBMD}
})

DarkRP.createShipment("EoTech 557 Scope", {
	model = "models/wystan/attachments/2otech557sight.mdl",
	entity = "upgr_eotech557",
	price = 2500,
	amount = 5,
	seperate = true,
	pricesep = 500,
	noship = false,
	allowed = {TEAM_BMD, TEAM_PBMD}
})

DarkRP.createShipment("Doctor Reflex Scope", {
	model = "models/wystan/attachments/2octorrds.mdl",
	entity = "upgr_reflexsight",
	price = 2500,
	amount = 5,
	seperate = true,
	pricesep = 500,
	noship = false,
	allowed = {TEAM_BMD, TEAM_PBMD}
})

DarkRP.createShipment("Kobra Reflex Scope", {
	model = "models/attachments/cmore.mdl",
	entity = "upgr_kobra",
	price = 2500,
	amount = 5,
	seperate = true,
	pricesep = 500,
	noship = false,
	allowed = {TEAM_BMD, TEAM_PBMD}
})

DarkRP.createShipment("Rifle Reflex Scope", {
	model = "models/attachments/kascope.mdl",
	entity = "upgr_riflereflex",
	price = 2500,
	amount = 5,
	seperate = true,
	pricesep = 500,
	noship = false,
	allowed = {TEAM_BMD, TEAM_PBMD}
})

DarkRP.createShipment("Bipod Grip", {
	model = "models/wystan/attachments/bipod.mdl",
	entity = "upgr_bipod",
	price = 2000,
	amount = 5,
	seperate = true,
	pricesep = 400,
	noship = false,
	allowed = {TEAM_BMD, TEAM_PBMD}
})

DarkRP.createShipment("Vertical Grip", {
	model = "models/wystan/attachments/foregrip1.mdl",
	entity = "upgr_vertgrip",
	price = 2000,
	amount = 5,
	seperate = true,
	pricesep = 400,
	noship = false,
	allowed = {TEAM_BMD, TEAM_PBMD}
})

DarkRP.createShipment("Laser Sight", {
	model = "models/Items/BoxSRounds.mdl",
	entity = "upgr_lasersight",
	price = 1500,
	amount = 5,
	seperate = true,
	pricesep = 300,
	noship = false,
	allowed = {TEAM_BMD, TEAM_PBMD}
})

DarkRP.createShipment("Water", {
	model = "models/drug_mod/the_bottle_of_water.mdl",
	entity = "durgz_water",
	price = 500,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_DD}
})

DarkRP.createShipment("Cigarettes", {
	model = "models/boxopencigshib.mdl",
	entity = "durgz_cigarette",
	price = 1500,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_DD}
})

DarkRP.createShipment("Beer", {
	model = "models/drug_mod/alcohol_can.mdl",
	entity = "durgz_alcohol",
	price = 1500,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_DD}
})

DarkRP.createShipment("Asprin", {
	model = "models/jaanus/aspbtl.mdl",
	entity = "durgz_asprin",
	price = 3000,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_DD}
})

DarkRP.createShipment("Heroine", {
	model = "models/katharsmodels/syringe_out/syringe_out.mdl",
	entity = "durgz_heroine",
	price = 3500,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_DD}
})

DarkRP.createShipment("LSD", {
	model = "models/smile/smile.mdl",
	entity = "durgz_lsd",
	price = 4000,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_DD}
})

DarkRP.createShipment("Cocaine", {
	model = "models/cocn.mdl",
	entity = "durgz_cocaine",
	price = 5000,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_DD}
})

DarkRP.createShipment("Shrooms", {
	model = "models/ipha/mushroom_small.mdl",
	entity = "durgz_mushroom",
	price = 5000,
	amount = 10,
	seperate = false,
	pricesep = nil,
	noship = false,
	allowed = {TEAM_DD}
})


And here is my jobsrelated file:


-- People often copy jobs. When they do, the GM table does not exist anymore.
-- This line makes the job code work both inside and outside of gamemode files.
-- You should not copy this line into your code.
local GAMEMODE = GAMEMODE or GM
/*--------------------------------------------------------
Default teams. Please do not edit this file. Please use the darkrpmod addon instead.
--------------------------------------------------------*/
TEAM_CITIZEN = DarkRP.createJob("Citizen", {
	color = Color(20, 150, 20, 255),
	model = {
		"models/player/Group01/Female_01.mdl",
		"models/player/Group01/Female_02.mdl",
		"models/player/Group01/Female_03.mdl",
		"models/player/Group01/Female_04.mdl",
		"models/player/Group01/Female_06.mdl",
		"models/player/group01/male_01.mdl",
		"models/player/Group01/Male_02.mdl",
		"models/player/Group01/male_03.mdl",
		"models/player/Group01/Male_04.mdl",
		"models/player/Group01/Male_05.mdl",
		"models/player/Group01/Male_06.mdl",
		"models/player/Group01/Male_07.mdl",
		"models/player/Group01/Male_08.mdl",
		"models/player/Group01/Male_09.mdl"
	},
	description = [[The Citizen is the most basic level of society you can hold besides being a hobo. You have no specific role in city life.]],
	weapons = {},
	command = "citizen",
	max = 0,
	salary = GAMEMODE.Config.normalsalary,
	admin = 0,
	vote = false,
	hasLicense = false,
	candemote = false
})

TEAM_POLICE = DarkRP.createJob("Civil Protection", {
	color = Color(25, 25, 170, 255),
	model = {"models/player/police.mdl", "models/player/police_fem.mdl"},
	description = [[The protector of every citizen that lives in the city.
		You have the power to arrest criminals and protect innocents.
		Hit a player with your arrest baton to put them in jail.
		Bash a player with a stunstick and they may learn to obey the law.
		The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
		The Battering Ram can also unfreeze frozen props (if enabled).
		Type /wanted <name> to alert the public to the presence of a criminal.]],
	weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"},
	command = "cp",
	max = 4,
	salary = GAMEMODE.Config.normalsalary * 1.45,
	admin = 0,
	vote = true,
	hasLicense = true,
	ammo = {
		["pistol"] = 60,
	}
})

TEAM_CHIEF = AddExtraTeam("Civil Protection Chief", {
	color = Color(20, 20, 255, 255),
	//model = "models/player/combine_soldier_prisonguard.mdl",
	model = {"models/player/combine_soldier_prisonguard.mdl", "models/player/police.mdl"},
	description = [[The Chief is the leader of the Civil Protection unit.
		Coordinate the police forces to bring law to the city
		Hit them with arrest baton to put them in jail
		Bash them with a stunstick and they might learn better than to
		disobey the law.
		The Battering Ram can break down the door of a criminal with a
		warrant for his/her arrest.
		Type /wanted <name> to alert the public to this criminal
		Type /jailpos to set the Jail Position]],
	weapons = {"arrest_stick", "unarrest_stick", "cstm_pistol_deagle", "stunstick", "door_ram", "weaponchecker"},
	command = "chief",
	max = 1,
	salary = 75,
	admin = 0,
	vote = false,
	hasLicense = true,
	NeedToChangeFrom = TEAM_POLICE,
	help = LANGUAGE.cophelp
})

TEAM_SWAT = AddExtraTeam("SWAT", {
	color = Color(0, 102, 0, 102),
	model = "models/player/swat.mdl",
	description = [[As a member of the Special Weapons And Tactics
		unit, your job is to help the Police force when the job needs some bigger guns.]],
	weapons = {"cstm_smg_mac10", "cstm_pistol_deagle", "arrest_stick", "stunstick", "unarrest_stick", "door_ram", "weaponchecker"},
	command = "swat",
	max = 2,
	salary = 75,
	admin = 0,
	vote = true,
	hasLicense = true
})

TEAM_SCHIEF = AddExtraTeam("SWAT Chief", {
	color = Color(0, 0, 0, 102),
	model = "models/player/riot.mdl",
	description = [[You are in charge of the SWAT force. Assist the Civil
        Protection in dangerous situations such as raids and riots with better
        weapons and tactics.]],
	weapons = {"cstm_smg_ump45", "weapon_mad_357", "arrest_stick", "stunstick", "unarrest_stick", "door_ram", "weaponchecker"},
	command = "swatchief",
	max = 1,
	salary = 80,
	admin = 0,
	vote = true,
	hasLicense = true,
	NeedToChangeFrom = TEAM_SWAT
})

TEAM_MOBA = AddExtraTeam("Scaletta Mob boss", {
	color = Color(25, 25, 25, 255),
	model = "models/player/gman_high.mdl",
	description = [[The Mobboss is the boss of the criminals in the city.
		With his power he coordinates the gangsters and forms an efficent crime
		organization.
		He has the ability to break into houses by using a lockpick.
		The Mobboss also can unarrest you.]],
	weapons = {"lockpick", "unarrest_stick",  "keypad_cracker"},
	command = "mobboss_a",
	max = 1,
	salary = 60,
	admin = 0,
	vote = false,
	hasLicense = false,
	help = LANGUAGE.bosshelp
})

TEAM_GANGA = AddExtraTeam("Scaletta Gangster", {
	color = Color(75, 75, 75, 255),
	model = {
		"models/player/Group03/Female_01.mdl",
		"models/player/Group03/Female_02.mdl",
		"models/player/Group03/Female_03.mdl",
		"models/player/Group03/Female_04.mdl",
		"models/player/Group03/Female_06.mdl",
		"models/player/group03/male_01.mdl",
		"models/player/Group03/Male_02.mdl",
		"models/player/Group03/male_03.mdl",
		"models/player/Group03/Male_04.mdl",
		"models/player/Group03/Male_05.mdl",
		"models/player/Group03/Male_06.mdl",
		"models/player/Group03/Male_07.mdl",
		"models/player/Group03/Male_08.mdl",
		"models/player/Group03/Male_09.mdl"},
	description = [[The lowest person of crime.
		A gangster generally works for the Mobboss who runs the crime family.
		The Mobboss sets your agenda and you follow it or you might be punished.]],
	weapons = {"lockpick"},
	command = "gangster_a",
	max = 3,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_MOBB = AddExtraTeam("Bondoni Mob boss", {
	color = Color(25, 25, 25, 255),
	model = "models/player/gman_high.mdl",
	description = [[The Mobboss is the boss of the criminals in the city.
		With his power he coordinates the gangsters and forms an efficent crime
		organization.
		He has the ability to break into houses by using a lockpick.
		The Mobboss also can unarrest you.]],
	weapons = {"lockpick", "unarrest_stick",  "keypad_cracker"},
	command = "mobboss_b",
	max = 1,
	salary = 60,
	admin = 0,
	vote = false,
	hasLicense = false,
	help = LANGUAGE.bosshelp
})

TEAM_GANGB = AddExtraTeam("Bondoni Gangster", {
	color = Color(75, 75, 75, 255),
	model = {
		"models/player/Group03/Female_01.mdl",
		"models/player/Group03/Female_02.mdl",
		"models/player/Group03/Female_03.mdl",
		"models/player/Group03/Female_04.mdl",
		"models/player/Group03/Female_06.mdl",
		"models/player/group03/male_01.mdl",
		"models/player/Group03/Male_02.mdl",
		"models/player/Group03/male_03.mdl",
		"models/player/Group03/Male_04.mdl",
		"models/player/Group03/Male_05.mdl",
		"models/player/Group03/Male_06.mdl",
		"models/player/Group03/Male_07.mdl",
		"models/player/Group03/Male_08.mdl",
		"models/player/Group03/Male_09.mdl"},
	description = [[The lowest person of crime.
		A gangster generally works for the Mobboss who runs the crime family.
		The Mobboss sets your agenda and you follow it or you might be punished.]],
	weapons = {"lockpick"},
	command = "gangster_b",
	max = 3,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_SENSEI = AddExtraTeam("Ninja Sensei", {
	color = Color(145, 61, 205, 255),
	model = "models/player/guerilla.mdl",
	description = [[You are a Ninja Sensei. You rule over every Ninja. ]],
	weapons = {"weapon_mad_knife", "weapon_mad_disguise", "fast_lockpick", "unarrest_stick", "climb_swep2", "keypad_cracker"},
	command = "sensei",
	max = 1,
	salary = 50,
	admin = 0,
	vote = true,
	hasLicense = false,
	//customCheck = function(ply) return ply:GetUserGroup() == "vip" or ply:GetUserGroup() == "trusted" or ply:GetUserGroup() == "vipmoderator" or ply:GetUserGroup() == "admin" or ply:GetUserGroup() == "superadmin" or ply:GetUserGroup() == "co-owner" or ply:GetUserGroup() == "coder" or ply:GetUserGroup() == "owner" end
})

TEAM_NINJA = AddExtraTeam("Ninja", {
	color = Color(145, 61, 205, 255),
	model = "models/player/arctic.mdl",
	description = [[You are a Ninja. Sneak into peoples bases. ]],
	weapons = {"weapon_mad_knife", "weapon_mad_disguise", "climb_swep2", "lockpick"},
	command = "ninja",
	max = 2,
	salary = 45,
	admin = 0,
	vote = true,
	hasLicense = false
})

TEAM_PTHIEF = AddExtraTeam("Pro Thief", {
	color = Color(153, 102, 0, 255),
	model = "models/player/Phoenix.mdl",
	description = [[Your job is steal items from others.]],
	weapons = {"fast_lockpick", "fast_keypad_cracker", "unarrest_stick"},
	command = "prothief",
	max = 2,
	salary = 50,
	admin = 0,
	vote = false,
	hasLicense = false,
	customCheck = function(ply) return ply:GetUserGroup() == "vip" or ply:GetUserGroup() == "trusted" or ply:GetUserGroup() == "vipmoderator" or ply:GetUserGroup() == "admin" or ply:GetUserGroup() == "superadmin" or ply:GetUserGroup() == "co-owner" or ply:GetUserGroup() == "coder" or ply:GetUserGroup() == "owner" end
})

TEAM_THIEF = AddExtraTeam("Thief", {
	color = Color(153, 102, 0, 255),
	model = "models/player/Phoenix.mdl",
	description = [[Your job is steal items from others.]],
	weapons = {"lockpick", "keypad_cracker"},
	command = "thief",
	max = 2,
	salary = 30,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_GUN = AddExtraTeam("Gun Dealer", {
	color = Color(255, 140, 0, 255),
	model = "models/player/monk.mdl",
	description = [[A gun dealer is the only person who can sell guns to other
		people.
		However, make sure you aren't caught selling guns that are illegal to
		the public.
		/Buyshipment <name> to Buy a  weapon shipment
		/Buygunlab to Buy a gunlab that spawns P228 pistols]],
	weapons = {},
	command = "gundealer",
	max = 2,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_PBMD = AddExtraTeam("Pro Black Market Dealer", {
	color = Color(255, 140, 140, 255),
	model = "models/player/barney.mdl",
	description = [[A black market dealer is the only person who can sell
		black market items to other people.
		However, make sure you aren't caught selling items to
		the public.]],
	weapons = {},
	command = "problackmarketdealer",
	max = 2,
	salary = 55,
	admin = 0,
	vote = false,
	hasLicense = false,
	customCheck = function(ply) return ply:GetUserGroup() == "vip" or ply:GetUserGroup() == "trusted" or ply:GetUserGroup() == "vipmoderator" or ply:GetUserGroup() == "admin" or ply:GetUserGroup() == "superadmin" or ply:GetUserGroup() == "co-owner" or ply:GetUserGroup() == "coder" or ply:GetUserGroup() == "owner" end
})

TEAM_BMD = AddExtraTeam("Black Market Dealer", {
	color = Color(255, 140, 140, 255),
	model = "models/player/barney.mdl",
	description = [[A black market dealer is the only person who can sell
		black market items to other people.
		However, make sure you aren't caught selling items to
		the public.]],
	weapons = {},
	command = "blackmarketdealer",
	max = 2,
	salary = 35,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_DD = AddExtraTeam("Drug Dealer", {
	color = Color(0, 255, 0, 255),
	model = "models/player/eli.mdl",
	description = [[Your job is to sell drugs to all members of civilisation.]],
	weapons = {},
	command = "dd",
	max = 2,
	salary = 35,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_MEDIC = DarkRP.createJob("Medic", {
	color = Color(47, 79, 79, 255),
	model = "models/player/kleiner.mdl",
	description = [[With your medical knowledge you work to restore players to full health.
		Without a medic, people cannot be healed.
		Left click with the Medical Kit to heal other players.
		Right click with the Medical Kit to heal yourself.]],
	weapons = {"med_kit"},
	command = "medic",
	max = 3,
	salary = GAMEMODE.Config.normalsalary,
	admin = 0,
	vote = false,
	hasLicense = false,
	medic = true
})

TEAM_MAYOR = DarkRP.createJob("Mayor", {
	color = Color(150, 20, 20, 255),
	model = "models/player/breen.mdl",
	description = [[The Mayor of the city creates laws to govern the city.
	If you are the mayor you may create and accept warrants.
	Type /wanted <name>  to warrant a player.
	Type /jailpos to set the Jail Position.
	Type /lockdown initiate a lockdown of the city.
	Everyone must be inside during a lockdown.
	The cops patrol the area.
	/unlockdown to end a lockdown]],
	weapons = {},
	command = "mayor",
	max = 1,
	salary = GAMEMODE.Config.normalsalary * 1.89,
	admin = 0,
	vote = true,
	hasLicense = false,
	mayor = true
})

TEAM_HOBO = DarkRP.createJob("Hobo", {
	color = Color(80, 45, 0, 255),
	model = "models/player/corpse1.mdl",
	description = [[The lowest member of society. Everybody laughs at you.
		You have no home.
		Beg for your food and money
		Sing for everyone who passes to get money
		Make your own wooden home somewhere in a corner or outside someone else's door]],
	weapons = {"weapon_bugbait"},
	command = "hobo",
	max = 5,
	salary = 0,
	admin = 0,
	vote = false,
	hasLicense = false,
	candemote = false,
	hobo = true
})

TEAM_HITMAN = AddExtraTeam("Hitman", {
	color = Color(255, 0, 0, 255),
	model = "models/player/leet.mdl",
	description = [[Your job is to kill for money. You are given
"hits" and your job is to complete them.]],
	weapons = {"cstm_sniper_scout", "weapon_mad_knife"},
	command = "hitman",
	max = 2,
	salary = 30,
	admin = 0,
	vote = true,
	hasLicense = false
})

TEAM_SECURITY = AddExtraTeam("Security Guard", {
	color = Color(102, 255, 255, 255),
	model = "models/player/odessa.mdl",
	description = [[Your job is to protect anybody and everybody who
offers you money.]],
	weapons = {"stunstick","cstm_pistol_fiveseven",},
	command = "security",
	max = 2,
	salary = 40,
	admin = 0,
	vote = false,
	hasLicense = true
})

TEAM_PREACHER = AddExtraTeam("Preacher", {
	color = Color(200, 100, 255, 255),
	model = "models/player/breen.mdl",
	description = [[Make a church and 
spread the word!]],
	weapons = {},
	command = "preacher",
	max = 2,
	salary = 50,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_MOD = AddExtraTeam("Moderator On Duty", {
	color = Color(255, 0, 204, 255),
	model = "models/player/combine_super_soldier.mdl",
	description = [[Protect the server from minges. ]],
	weapons = {"arrest_stick","stunstick","unarrest_stick","door_ram","weaponchecker","weapon_keypadchecker"},
	command = "mod",
	max = 0,
	salary = 0,
	admin = 0,
	vote = false,
	hasLicense = true,
	customCheck = function(ply) return ply:GetUserGroup() == "moderator" or ply:GetUserGroup() == "vipmoderator" or ply:GetUserGroup() == "trialmoderator" end
})

TEAM_AOD = AddExtraTeam("Admin On Duty", {
	color = Color(255, 0, 204, 255),
	model = "models/player/combine_super_soldier.mdl",
	description = [[Protect the server from minges. ]],
	weapons = {"arrest_stick","stunstick","unarrest_stick","door_ram","weaponchecker","weapon_keypadchecker"},
	command = "aod",
	max = 0,
	salary = 0,
	admin = 1,
	vote = false,
	hasLicense = true,
	customCheck = function(ply) return ply:GetUserGroup() == "admin" or ply:GetUserGroup() == "trialadmin" end
})

TEAM_SAOD = AddExtraTeam("Super Admin On Duty", {
	color = Color(255, 0, 204, 255),
	model = "models/player/combine_super_soldier.mdl",
	description = [[Protect the server from minges. ]],
	weapons = {"arrest_stick","stunstick","unarrest_stick","door_ram","weaponchecker","weapon_keypadchecker"},
	command = "saod",
	max = 0,
	salary = 0,
	admin = 1,
	vote = false,
	hasLicense = true,
	customCheck = function(ply) return ply:GetUserGroup() == "superadmin" end
})

-- Compatibility for when default teams are disabled
TEAM_CITIZEN = TEAM_CITIZEN  or -1
TEAM_POLICE  = TEAM_POLICE   or -1
TEAM_GANG    = TEAM_GANG     or -1
TEAM_MOB     = TEAM_MOB      or -1
TEAM_GUN     = TEAM_GUN      or -1
TEAM_MEDIC   = TEAM_MEDIC    or -1
TEAM_CHIEF   = TEAM_CHIEF    or -1
TEAM_MAYOR   = TEAM_MAYOR    or -1
TEAM_HOBO    = TEAM_HOBO     or -1


/*
--------------------------------------------------------
HOW TO MAKE A DOOR GROUP
--------------------------------------------------------
AddDoorGroup("NAME OF THE GROUP HERE, you see this when looking at a door", Team1, Team2, team3, team4, etc.)


The default door groups, can also be used as examples:
*/
AddDoorGroup("Cops and Mayor only", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
AddDoorGroup("Gundealer only", TEAM_GUN)


/*
--------------------------------------------------------
HOW TO MAKE AN AGENDA
--------------------------------------------------------
AddAgenda(Title of the agenda, Manager (who edits it), Listeners (the ones who just see and follow the agenda))

The default agenda's, can also be used as examples:
*/
AddAgenda("Gangster's agenda", TEAM_MOB, {TEAM_GANG})
AddAgenda("Police agenda", TEAM_MAYOR, {TEAM_CHIEF, TEAM_POLICE})


/*
---------------------------------------------------------------------------
HOW TO MAKE A GROUP CHAT
---------------------------------------------------------------------------
Pick one!
GAMEMODE:AddGroupChat(List of team variables separated by comma)

or

GAMEMODE:AddGroupChat(a function with ply as argument that returns whether a random player is in one chat group)
This one is for people who know how to script Lua.

*/
GAMEMODE:AddGroupChat(function(ply) return ply:isCP() end)
GAMEMODE:AddGroupChat(TEAM_MOB, TEAM_GANG)

/*---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------*/
GAMEMODE.DefaultTeam = TEAM_CITIZEN

/*---------------------------------------------------------------------------
Define which teams belong to civil protection
Civil protection can set warrants, make people wanted and do some other police related things
---------------------------------------------------------------------------*/
GAMEMODE.CivilProtection = {
	[TEAM_POLICE] = true,
	[TEAM_CHIEF] = true,
	[TEAM_MAYOR] = true,
}

/*---------------------------------------------------------------------------
Enable hitman goodies on this team
---------------------------------------------------------------------------*/
DarkRP.addHitmanTeam(TEAM_MOB)

/*---------------------------------------------------------------------------
Default demote groups
---------------------------------------------------------------------------*/
DarkRP.createDemoteGroup("Cops", {TEAM_POLICE, TEAM_CHIEF})
DarkRP.createDemoteGroup("Gangsters", {TEAM_GANG, TEAM_MOB})


Mount CS:S.