DARKRP When you change jobs you dont see? and dont spawn with any tools?

Basically, the HUD Is empty, you dont spawn with the tools and your screwed basically,

Error when changing jobs:

SV_Jobs dl: https://mega.co.nz/#!MdBQzb6A!sbTvpS6ob3Gt73fdMSRzopcSyPOhaMsmScr_8DwaLQQ

code:


/*---------------------------------------------------------------------------
Functions
---------------------------------------------------------------------------*/
local meta = FindMetaTable("Player")
function meta:changeTeam(t, force)
	local prevTeam = self:Team()

	if self:isArrested() and not force then
		DarkRP.notify(self, 1, 4, DarkRP.getPhrase("unable", team.GetName(t), ""))
		return false
	end

	self:setDarkRPVar("agenda", nil)

	if t ~= GAMEMODE.DefaultTeam and not self:changeAllowed(t) and not force then
		DarkRP.notify(self, 1, 4, DarkRP.getPhrase("unable", team.GetName(t), "banned/demoted"))
		return false
	end

	if self.LastJob and 10 - (CurTime() - self.LastJob) >= 0 and not force then
		DarkRP.notify(self, 1, 4, DarkRP.getPhrase("have_to_wait",  math.ceil(10 - (CurTime() - self.LastJob)), "/job"))
		return false
	end

	if self.IsBeingDemoted then
		self:teamBan()
		self.IsBeingDemoted = false
		self:changeTeam(GAMEMODE.DefaultTeam, true)
		DarkRP.destroyVotesWithEnt(self)
		DarkRP.notify(self, 1, 4, DarkRP.getPhrase("tried_to_avoid_demotion"))

		return false
	end


	if prevTeam == t then
		DarkRP.notify(self, 1, 4, DarkRP.getPhrase("unable", team.GetName(t), ""))
		return false
	end

	local TEAM = RPExtraTeams[t]
	if not TEAM then return false end

	if TEAM.customCheck and not TEAM.customCheck(self) then
		DarkRP.notify(self, 1, 4, TEAM.CustomCheckFailMsg or DarkRP.getPhrase("unable", team.GetName(t), ""))
		return false
	end

	if not self.DarkRPVars["Priv"..TEAM.command] and not force then
		if type(TEAM.NeedToChangeFrom) == "number" and prevTeam ~= TEAM.NeedToChangeFrom then
			DarkRP.notify(self, 1,4, DarkRP.getPhrase("need_to_be_before", team.GetName(TEAM.NeedToChangeFrom), TEAM.name))
			return false
		elseif type(TEAM.NeedToChangeFrom) == "table" and not table.HasValue(TEAM.NeedToChangeFrom, prevTeam) then
			local teamnames = ""
			for a,b in pairs(TEAM.NeedToChangeFrom) do teamnames = teamnames.." or "..team.GetName(b) end
			DarkRP.notify(self, 1,4, string.format(string.sub(teamnames, 5), team.GetName(TEAM.NeedToChangeFrom), TEAM.name))
			return false
		end
		local max = TEAM.max
		if max ~= 0 and -- No limit
		(max >= 1 and team.NumPlayers(t) >= max or -- absolute maximum
		max < 1 and (team.NumPlayers(t) + 1) / #player.GetAll() > max) then -- fractional limit (in percentages)
			DarkRP.notify(self, 1, 4,  DarkRP.getPhrase("team_limit_reached", TEAM.name))
			return false
		end
	end

	if TEAM.PlayerChangeTeam then
		local val = TEAM.PlayerChangeTeam(self, prevTeam, t)
		if val ~= nil then
			return val
		end
	end

	local hookValue = hook.Call("playerCanChangeTeam", nil, self, t, force)
	if hookValue == false then return false end

	local isMayor = RPExtraTeams[prevTeam] and RPExtraTeams[prevTeam].mayor
	if isMayor and tobool(GetConVarNumber("DarkRP_LockDown")) then
		DarkRP.unLockdown(self)
	end
	self:updateJob(TEAM.name)
	self:setSelfDarkRPVar("salary", TEAM.salary)
	DarkRP.notifyAll(0, 4, DarkRP.getPhrase("job_has_become", self:Nick(), TEAM.name))


	if self:getDarkRPVar("HasGunlicense") then
		self:setDarkRPVar("HasGunlicense", false)
	end
	if TEAM.hasLicense and GAMEMODE.Config.license then
		self:setDarkRPVar("HasGunlicense", true)
	end

	self.LastJob = CurTime()

	if GAMEMODE.Config.removeclassitems then
		for k, v in pairs(ents.FindByClass("microwave")) do
			if v.allowed and type(v.allowed) == "table" and table.HasValue(v.allowed, t) then continue end
			if v.SID == self.SID then v:Remove() end
		end
		for k, v in pairs(ents.FindByClass("gunlab")) do
			if v.allowed and type(v.allowed) == "table" and table.HasValue(v.allowed, t) then continue end
			if v.SID == self.SID then v:Remove() end
		end

		for k, v in pairs(ents.FindByClass("drug_lab")) do
			if v.allowed and type(v.allowed) == "table" and table.HasValue(v.allowed, t) then continue end
			if v.SID == self.SID then v:Remove() end
		end

		for k,v in pairs(ents.FindByClass("spawned_shipment")) do
			if v.allowed and type(v.allowed) == "table" and table.HasValue(v.allowed, t) then continue end
			if v.SID == self.SID then v:Remove() end
		end
	end

	if isMayor then
		for _, ent in pairs(self.lawboards or {}) do
			if IsValid(ent) then
				ent:Remove()
			end
		end
	end

	self:SetTeam(t)
	hook.Call("OnPlayerChangedTeam", GAMEMODE, self, prevTeam, t)
	DarkRP.log(self:Nick().." ("..self:SteamID()..") changed to "..team.GetName(t), nil, Color(100, 0, 255))
	if self:InVehicle() then self:ExitVehicle() end
	if GAMEMODE.Config.norespawn and self:Alive() then
		self:StripWeapons()
		local vPoint = self:GetShootPos() + Vector(0,0,50)
		local effectdata = EffectData()
		effectdata:SetEntity(self)
		effectdata:SetStart( vPoint ) -- Not sure if we need a start and origin (endpoint) for this effect, but whatever
		effectdata:SetOrigin( vPoint )
		effectdata:SetScale(1)
		util.Effect("entity_remove", effectdata)
		hook.Call("UpdatePlayerSpeed", GAMEMODE, self)
		GAMEMODE:PlayerSetModel(self)
		GAMEMODE:PlayerLoadout(self)
	else
		self:KillSilent()
	end

	umsg.Start("OnChangedTeam", self)
		umsg.Short(prevTeam)
		umsg.Short(t)
	umsg.End()
	return true
end

function meta:updateJob(job)
	self:setDarkRPVar("job", job)

	timer.Create(self:UniqueID() .. "jobtimer", GAMEMODE.Config.paydelay, 0, function()
		if not IsValid(self) then return end
		self:payDay()
	end)
end

function meta:teamUnBan(Team)
	if not IsValid(self) then return end
	if not self.bannedfrom then self.bannedfrom = {} end
	self.bannedfrom[Team] = 0
end

function meta:teamBan(t, time)
	if not self.bannedfrom then self.bannedfrom = {} end
	t = t or self:Team()
	self.bannedfrom[t] = 1

	if time == 0 then return end
	timer.Simple(time or GAMEMODE.Config.demotetime, function()
		if not IsValid(self) then return end
		self:teamUnBan(t)
	end)
end

function meta:changeAllowed(t)
	if not self.bannedfrom then return true end
	if self.bannedfrom[t] == 1 then return false else return true end
end

/*---------------------------------------------------------------------------
Commands
---------------------------------------------------------------------------*/
local function ChangeJob(ply, args)
	if args == "" then
		DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("invalid_x", "argument", ""))
		return ""
	end

	if ply:isArrested() then
		DarkRP.notify(ply, 1, 5, DarkRP.getPhrase("unable", "/job", ""))
		return ""
	end

	if ply.LastJob and 10 - (CurTime() - ply.LastJob) >= 0 then
		DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("have_to_wait", math.ceil(10 - (CurTime() - ply.LastJob)), "/job"))
		return ""
	end
	ply.LastJob = CurTime()

	if not ply:Alive() then
		DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("unable", "/job", ""))
		return ""
	end

	if not GAMEMODE.Config.customjobs then
		DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("disabled", "/job", ""))
		return ""
	end

	local len = string.len(args)

	if len < 3 then
		DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("unable", "/job", ">2"))
		return ""
	end

	if len > 25 then
		DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("unable", "/job", "<26"))
		return ""
	end

	local canChangeJob, message, replace = hook.Call("canChangeJob", nil, ply, args)
	if canChangeJob == false then
		DarkRP.notify(ply, 1, 4, message or DarkRP.getPhrase("unable", "/job", ""))
		return ""
	end

	local job = replace or args
	DarkRP.notifyAll(2, 4, DarkRP.getPhrase("job_has_become", ply:Nick(), job))
	ply:updateJob(job)
	return ""
end
DarkRP.defineChatCommand("job", ChangeJob)

local function FinishDemote(vote, choice)
	local target = vote.target

	target.IsBeingDemoted = nil
	if choice == 1 then
		target:teamBan()
		if target:Alive() then
			target:changeTeam(GAMEMODE.DefaultTeam, true)
			if target:isArrested() then
				target:arrest()
			end
		else
			target.demotedWhileDead = true
		end

		DarkRP.notifyAll(0, 4, DarkRP.getPhrase("demoted", target:Nick()))
	else
		DarkRP.notifyAll(1, 4, DarkRP.getPhrase("demoted_not", target:Nick()))
	end
end

local function Demote(ply, args)
	local tableargs = string.Explode(" ", args)
	if #tableargs == 1 then
		DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("vote_specify_reason"))
		return ""
	end
	local reason = ""
	for i = 2, #tableargs, 1 do
		reason = reason .. " " .. tableargs*
	end
	reason = string.sub(reason, 2)
	if string.len(reason) > 99 then
		DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("unable", "/demote", "<100"))
		return ""
	end
	local p = DarkRP.findPlayer(tableargs[1])
	if p == ply then
		DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("cant_demote_self"))
		return ""
	end

	local canDemote, message = hook.Call("canDemote", GAMEMODE, ply, p, reason)
	if canDemote == false then
		DarkRP.notify(ply, 1, 4, message or DarkRP.getPhrase("unable", "demote", ""))
		return ""
	end

	if p then
		if CurTime() - ply.LastVoteCop < 80 then
			DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("have_to_wait", math.ceil(80 - (CurTime() - ply:GetTable().LastVoteCop)), "/demote"))
			return ""
		end
		if not RPExtraTeams[p:Team()] or RPExtraTeams[p:Team()].candemote == false then
			DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("unable", "/demote", ""))
		else
			DarkRP.talkToPerson(p, team.GetColor(ply:Team()), DarkRP.getPhrase("demote") .. " " ..ply:Nick(),Color(255,0,0,255), DarkRP.getPhrase("i_want_to_demote_you", reason), p)
			DarkRP.notifyAll(0, 4, DarkRP.getPhrase("demote_vote_started", ply:Nick(), p:Nick()))
			DarkRP.log(DarkRP.getPhrase("demote_vote_started", ply:Nick(), p:Nick()) .. " (" .. reason .. ")",
				false, Color(255, 128, 255, 255))
			p.IsBeingDemoted = true

			DarkRP.createVote(p:Nick() .. ":
"..DarkRP.getPhrase("demote_vote_text", reason), "demote", p, 20, FinishDemote,
			{
				[p] = true,
				[ply] = true
			}, function(vote)
				if not IsValid(vote.target) then return end
				vote.target.IsBeingDemoted = nil
			end)
			ply:GetTable().LastVoteCop = CurTime()
		end
		return ""
	else
		DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("could_not_find", tostring(args)))
		return ""
	end
end
DarkRP.defineChatCommand("demote", Demote)

local function ExecSwitchJob(answer, ent, ply, target)
	ply.RequestedJobSwitch = nil
	if not tobool(answer) then return end
	local Pteam = ply:Team()
	local Tteam = target:Team()

	if not ply:changeTeam(Tteam) then return end
	if not target:changeTeam(Pteam) then
		ply:changeTeam(Pteam, true) -- revert job change
		return
	end
	DarkRP.notify(ply, 2, 4, DarkRP.getPhrase("job_switch"))
	DarkRP.notify(target, 2, 4, DarkRP.getPhrase("job_switch"))
end

local function SwitchJob(ply) --Idea by Godness.
	if not GAMEMODE.Config.allowjobswitch then return "" end

	if ply.RequestedJobSwitch then return end

	local eyetrace = ply:GetEyeTrace()
	if not eyetrace or not eyetrace.Entity or not eyetrace.Entity:IsPlayer() then return "" end
	ply.RequestedJobSwitch = true
	DarkRP.createQuestion(DarkRP.getPhrase("job_switch_question", ply:Nick()), "switchjob"..tostring(ply:EntIndex()), eyetrace.Entity, 30, ExecSwitchJob, ply, eyetrace.Entity)
	DarkRP.notify(ply, 0, 4, DarkRP.getPhrase("job_switch_requested"))
	return ""
end
DarkRP.defineChatCommand("switchjob", SwitchJob)
DarkRP.defineChatCommand("switchjobs", SwitchJob)
DarkRP.defineChatCommand("jobswitch", SwitchJob)


local function DoTeamBan(ply, args, cmdargs)
	if ply:EntIndex() ~= 0 and not ply:hasDarkRPPrivilege("rp_commands") then
		if cmdargs then
			ply:PrintMessage(HUD_PRINTCONSOLE, DarkRP.getPhrase("need_admin", "/teamban"))
			return
		else
			DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("need_admin", "/teamban"))
			return ""
		end
	end
	
	if not args or args == "" then
		DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("invalid_x", "arguments", ""))
		return ""
	end

	if cmdargs and not cmdargs[2] then
		if ply:EntIndex() == 0 then
			print(DarkRP.getPhrase("rp_teamban_hint"))
		else
			ply:PrintMessage(HUD_PRINTCONSOLE, DarkRP.getPhrase("rp_teamban_hint"))
		end
		return
	end

	args = cmdargs or string.Explode(" ", args)
	local ent = args[1]
	local Team = args[2]

	local target = DarkRP.findPlayer(ent)
	if not target or not IsValid(target) then
		if ply:EntIndex() == 0 then
			print(DarkRP.getPhrase("could_not_find", ent or ""))
			return
		elseif cmdargs then
			ply:PrintMessage(HUD_PRINTCONSOLE, DarkRP.getPhrase("could_not_find", ent or ""))
			return
		else
			DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("could_not_find", ent or ""))
			return ""
		end
	end

	local found = false
	for k,v in pairs(RPExtraTeams) do
		if string.lower(v.name) == string.lower(Team) or string.lower(v.command) == string.lower(Team) or k == tonumber(Team or -1) then
			Team = k
			found = true
			break
		end
	end

	if not found then
		if ply:EntIndex() == 0 then
			print(DarkRP.getPhrase("could_not_find", Team or ""))
			return
		elseif cmdargs then
			ply:PrintMessage(HUD_PRINTCONSOLE, DarkRP.getPhrase("could_not_find", Team or ""))
			return
		else
			DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("could_not_find", Team or ""))
			return ""
		end
	end

	target:teamBan(tonumber(Team), tonumber(args[3] or 0))

	local nick
	if ply:EntIndex() == 0 then
		nick = "Console"
	else
		nick = ply:Nick()
	end
	DarkRP.notifyAll(0, 5, DarkRP.getPhrase("x_teambanned_y", nick, target:Nick(), team.GetName(tonumber(Team))))
	
	return ""
end
DarkRP.defineChatCommand("teamban", DoTeamBan)
concommand.Add("rp_teamban", DoTeamBan)

local function DoTeamUnBan(ply, args, cmdargs)
	if ply:EntIndex() ~= 0 and not ply:hasDarkRPPrivilege("rp_commands") then
		DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("need_admin", "/teamunban"))
		return ""
	end

	if not args or args == "" then
		DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("invalid_x", "arguments", ""))
		return ""
	end

	local ent = args
	local Team = args
	if cmdargs then
		if not cmdargs[2] then
			if ply:EntIndex() == 0 then
				print(DarkRP.getPhrase("rp_teamunban_hint"))
			else
				ply:PrintMessage(HUD_PRINTCONSOLE, DarkRP.getPhrase("rp_teamunban_hint"))
			end
			return
		end
		ent = cmdargs[1]
		Team = cmdargs[2]
	else
		local a,b = string.find(args, " ")
		ent = string.sub(args, 1, a - 1)
		Team = string.sub(args, a + 1)
	end

	local target = DarkRP.findPlayer(ent)
	if not target or not IsValid(target) then
		if ply:EntIndex() == 0 then
			print(DarkRP.getPhrase("could_not_find", ent or ""))
			return
		elseif cmdargs then
			ply:PrintMessage(HUD_PRINTCONSOLE, DarkRP.getPhrase("could_not_find", ent or ""))
			return
		else
			DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("could_not_find", ent or ""))
			return ""
		end
	end

	local found = false
	for k,v in pairs(RPExtraTeams) do
		if string.lower(v.name) == string.lower(Team) or  string.lower(v.command) == string.lower(Team) then
			Team = k
			found = true
			break
		end
		if k == tonumber(Team or -1) then
			found = true
			break
		end
	end

	if not found then
		if ply:EntIndex() == 0 then
			print(DarkRP.getPhrase("could_not_find", Team or ""))
			return
		elseif cmdargs then
			ply:PrintMessage(HUD_PRINTCONSOLE, DarkRP.getPhrase("could_not_find", Team or ""))
			return
		else
			DarkRP.notify(ply, 1, 4, DarkRP.getPhrase("could_not_find", Team or ""))
			return ""
		end
	end
	if not target.bannedfrom then target.bannedfrom = {} end
	target.bannedfrom[tonumber(Team)] = nil

	local nick
	if ply:EntIndex() == 0 then
		nick = "Console"
	else
		nick = ply:Nick()
	end
	DarkRP.notifyAll(1, 5, DarkRP.getPhrase("x_teamunbanned_y", nick, target:Nick(), team.GetName(tonumber(Team))))
	
	return ""
end
DarkRP.defineChatCommand("teamunban", DoTeamUnBan)
concommand.Add("rp_teamunban", DoTeamUnBan)


Jobrelated.lua dl : https://mega.co.nz/#!ZcICRYzJ!4yulNg3uOEn9IvBO7UV4t9i-kwswGzWvP_VSB6Q7vb0

code:


 
 /*--------------------------------------------------------
Default teams. If you make a team above the citizen team, people will spawn with that team!
--------------------------------------------------------*/
TEAM_CITIZEN = AddExtraTeam("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 = [[]],
weapons = {"rphands"},
command = "citizen",
max = 0,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
mayorCanSetSalary = true
})

TEAM_POLICE = AddExtraTeam("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","rphands"},
	command = "cp",
	max = 4,
	salary = 65,
	admin = 0,
	vote = true,
	hasLicense = true,
	help = {
		"Please don't abuse your job",
		"When you arrest someone they are auto transported to jail.",
		"They are auto let out of jail after some time",
		"Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
		"Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect",
		"Type /unwanted [Nick|SteamID|Status ID] to clear the suspect",
		"Type /jailpos to set the jail position"
	}
})

TEAM_GANG = AddExtraTeam("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 = {"m9k_usp", "lockpick"},
        command = "gangster",
        max = 7,
        salary = 45,
        admin = 0,
        vote = false,
        hasLicense = false
})

TEAM_MOB = AddExtraTeam("Mob boss", {
	color = Color(25, 25, 25, 255),
	model = "models/player/gman_high.mdl",
	description = [[The Mob boss is the boss of the criminals in the city.
		With his power he coordinates the gangsters and forms an efficient crime organization.
		He has the ability to break into houses by using a lockpick.
		The Mob boss posesses the ability to unarrest you.]],
	weapons = {"lockpick", "unarrest_stick", "rphands"},
	command = "mobboss",
	max = 1,
	salary = 60,
	admin = 0,
	vote = false,
	hasLicense = false,
	help = {
		"As the Mob boss, you decide what you want the other Gangsters to do.",
		"You get an Unarrest Stick which you can use to break people out of jail.",
		"/agenda <Message> Sets the Gangsters' agenda. Use // to go to the next line."
	}
})

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.
		Make sure you aren't caught selling illegal firearms to the public! You might get arrested!]],
	weapons = {"rphands"},
	command = "gundealer",
	max = 2,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_MEDIC = AddExtraTeam("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","rphands"},
	command = "medic",
	max = 3,
	salary = 45,
	admin = 0,
	vote = false,
	hasLicense = false,
	medic = true
})

TEAM_CHIEF = AddExtraTeam("Civil Protection Chief", {
	color = Color(20, 20, 255, 255),
	model = "models/player/combine_soldier_prisonguard.mdl",
	description = [[The Chief is the leader of the Civil Protection unit.
		Coordinate the police force to enforce law in the city.
		Hit a player with 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 his/her arrest.
		Type /wanted <name> to alert the public to the presence of a criminal.
		Type /jailpos to set the Jail Position]],
	weapons = {"arrest_stick", "unarrest_stick", "weapon_deagle2", "stunstick", "door_ram", "rphands", "weaponchecker"},
	command = "chief",
	max = 1,
	salary = 75,
	admin = 0,
	vote = false,
	hasLicense = true,
	chief = true,
	NeedToChangeFrom = TEAM_POLICE,
	help = {
		"Please don't abuse your job",
		"When you arrest someone they are auto transported to jail.",
		"They are auto let out of jail after some time",
		"Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
		"Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect",
		"Type /unwanted [Nick|SteamID|Status ID] to clear the suspect",
		"Type /jailpos to set the jail position"
	}
})

TEAM_MAYOR = AddExtraTeam("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 = {"rphands","unarrest_stick"},
	command = "mayor",
	max = 1,
	salary = 85,
	admin = 0,
	vote = true,
	hasLicense = false,
	mayor = true,
	help = {
		"Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.",
		"Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect.",
		"Type /unwanted [Nick|SteamID|Status ID] to clear the suspect.",
		"Type /lockdown to initiate a lockdown",
		"Type /unlockdown to end a lockdown",
		"Type /placelaws to place a screen containing the laws.",
		"Type /addlaw and /removelaw to edit the laws."
	}
})

TEAM_HOBO = AddExtraTeam("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","rphands"},
	command = "hobo",
	max = 5,
	salary = 0,
	admin = 0,
	vote = false,
	hasLicense = false,
	candemote = false,
	hobo = true
})
TEAM_CARDEALER = AddExtraTeam("Car Dealer", Color(70, 70, 70, 255), " models/player/barney.mdl", [[You sell cars to the population to earn a living!]], {"rphands"}, "cardealer", 2, 69, 0, false, false, false)


TEAM_ANARCHIST = AddExtraTeam("Anarchist", Color(0, 153, 0, 255), "models/player/guerilla.mdl", [[Not your Average Anarchist!]], {"rphands", "grapplehook", "weapon_molotov_c"}, "anarchist", 2, 50, 0, false, false, false)




TEAM_CATBURGERLER = AddExtraTeam("Cat Burglar ", {
	color = Color(50, 50, 50, 255),
	model = "models/player/odessa.mdl",
	description = [[Get paid to lockpick doors.]],
	weapons = {"rp_hands"},
	command = "Cat Burglar",
	max = 2,
	salary = 45,
	admin = 0,
	vote = true,
	hasLicense = false
})



TEAM_BODY = AddExtraTeam("Bodyguard", {
	color = Color(150, 25, 25, 255),
	model = "models/player/Barney.mdl",
	description = [[Get paid to protect people.]],
	weapons = {"weapon_deagle2", "stunstick", "rp_hands"},
	command = "Bodyguard",
	max = 3,
	salary = 55,
	admin = 0,
	vote = true,
	hasLicense = true
})


TEAM_Assassin = AddExtraTeam("Assassin", Color(1, 2, 3, 255), "garrysmod/addons/Dark Female Assassin PM/models/player/e3assassin.mdl", [[You are an assassin, you are paid to assassinate people. ]], {"gdcw_lr300ironsupp" , "rp_hands"}, "assassin", 1, 75, 0, false)

TEAM_SWATLEADER = AddExtraTeam("Swat Leader", {
	color = Color(0, 45, 51, 0),
	model = "models/player/swat.mdl",
	description = [[Your the Swat Leader, in charge of all Swat 
	and Civil Protection.]],
	weapons = {"m9k_m249lmg", "m9k_deagle","rp_hands", "arrest_stick", "unarrest_stick", "weaponchecker", "stunstick", "door_ram"},
	command = "leader",
	max = 1,
	salary = 250,
	admin = 0,
	vote = false,
	hasLicense = true
})

TEAM_SWAT = AddExtraTeam("Swat", {
	color = Color(0, 45, 204, 0),
	model = "models/player/combine_soldier.mdl",
	description = [[Complete the raids that the CP cannot.]],
	weapons = {"m9k_g36", "m9k_deagle", "arrest_stick", "rp_hands", "unarrest_stick", "door_ram", "stunstick", "weaponchecker", "weapon_mad_charge"},
	command = "swat",
	max = 3,
	salary = 200,
	admin = 0,
	vote = false,
	hasLicense = true
})

TEAM_SWATSNIPER = AddExtraTeam("Swat Sniper", {
	color = Color(0, 45, 204, 0),
	model = "models/player/ct_urban.mdl",
	description = [[Complete the raids that the CP cannot.]],
	weapons = {"m9k_barret_m82", "m9k_deagle", "arrest_stick", "rp_hands", "unarrest_stick", "door_ram", "stunstick", "weaponchecker"},
	command = "sniper",
	max = 3,
	salary = 200,
	admin = 0,
	vote = false,
	hasLicense = true
})

TEAM_SWATMEDIC = AddExtraTeam("Swat Medic", {
	color = Color(0, 45, 204, 0),
	model = "models/player/css_gasmask",
	description = [[Complete the raids that the CP cannot.]],
	weapons = {"m9k_g36", "arrest_stick", "rp_hands", "unarrest_stick", "door_ram", "stunstick", "weaponchecker","weapon_medkit"},
	command = "swatm",
	max = 3,
	salary = 200,
	admin = 0,
	vote = false,
	hasLicense = true
})





TEAM_BANKER = AddExtraTeam("Banker", {
	color = Color(0, 102, 255, 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/Female_07.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 = [[Store peoples printers for them. Don't steal money from the printers.]],
	weapons = {"rp_hands", "pocket", "keys"},
	command = "banker",
	max = 1,
	salary = 150,
	admin = 0,
	vote = true,
	hasLicense = false
})

TEAM_GUARD = AddExtraTeam("Guard", {
	color = Color(0, 204, 255, 255),
	model = {
		"models/player/odessa.mdl",
	},
	description = [[You're job is to guard people that hire you.]],
	weapons = {"rp_hands", "pocket", "keys", "weaponchecker", "stunstick"},
	command = "guard",
	max = 4,
	salary = 150,
	admin = 0,
	vote = true,
	hasLicense = false
})


TEAM_FBI = AddExtraTeam("FBI", {
	color = Color(255, 255, 255, 255),
	model = {
		"fbi_01",
		"fbi_02",
		"fbi_03",
		"fbi_04",
		"fbi_05",
        "fbi_06",
        "fbi_07",
		"fbi_08",
		"fbi_09",
},

	description = [[Protect the Mayor with your life!]],
	weapons = {"rp_hands", "pocket", "keys", "stunstick", "weaponchecker", "unarrest_baton", "arrest_baton", "weapon_mad_mp5", "weapon_mad_usp"},
	command = "fbi",
	max = 4,
	salary = 80,
	admin = 0,
	vote = false,
	hasLicense = false
})

TEAM_THIEF = AddExtraTeam("Thief", {
        color = Color(255, 0, 0, 255),
        model = "models/player/phoenix.mdl",
        description = [[As a Thief you will break into peoples houses
steal there items leave and try not to get caught
by the police you can not mug people on the
streets!
Raid = Yes ]],
        weapons = {"rp_hands","lockpick","weapon_real_cs_knife","m9k_deagle","m9k_colt1911"},
        command = "theif",
        max = 4,
        salary = 45,
        admin = 0,
        vote = false,
        hasLicense = false
})
 
TEAM_MASTERTHIEF = AddExtraTeam("Master Thief", {
        color = Color(255, 0, 0, 255),
        model = "models/player/arctic.mdl",
        description = [[As a Master Thief you will break into peoples
houses steal there items leave and try not to get
caught by the police you can not mug people on the
streets!
Raid = Yes
Job = V.I.P ]],
        weapons = {"rp_hands","pro_lockpick","m9k_deagle","m9k_m16a4_acog","m9k_m16a4_acog","m9k_famas"},
        command = "mastertheif",
        max = 4,
        salary = 75,
        admin = 1,
        vote = false,
        hasLicense = false
})
 
 

 
TEAM_Hitman = AddExtraTeam("Hitman", {
        color = Color(84, 69, 0, 298),
        model = "models/player/guerilla.mdl",
        description = [[You are paid to kill people, and if not your a motherfucking nigger. ]],
        weapons = {"m9k_usp","m9k_intervention"},
        command = "Hitman",
        max = 5,
        salary = 65,
        admin = 0,
        vote = true,
        hasLicense = false
})
 

 
TEAM_BLACKMARKETDEALER = AddExtraTeam("Black market dealer", {
        color = Color(0, 0, 0, 255),
        model = "models/player/eli.mdl",
        description = [[As a Black market dealer you will sell weapons and
other illegal stuff and try not to get caught by
the police or you could be put in jail!
Raid = No ]],
        weapons = {"rp_hands"},
        command = "blackmarketdealer",
        max = 2,
        salary = 85,
        admin = 0,
        vote = false,
        hasLicense = false
})
 
 
TEAM_DSWAT = AddExtraTeam("Donator's S.W.A.T", {
        color = Color(0, 51, 255, 255),
        model = "models/player/swat.mdl",
        description = [[As a S.W.A.T you will take down drug operations
and gang
operations be careful not to die and make sure you
got a S.W.A.T Sniper looking out for you guys and
follow your S.W.A.T leader.
Raid = No
Job = V.I.P ]],
        weapons = {"rp_hands","m9k_m16a4_acog","m9k_glock","m9k_jackhammer","weapon_slam","weapon_stunstick","unarrest_stick","unarrest_stick","door_ram"},
        command = "donatorsswat",
        max = 4,
        salary = 75,
        admin = 1,
        vote = false,
        hasLicense = true
})
 
TEAM_DSWATSNIPER = AddExtraTeam("Donater's S.W.A.T Sniper", {
        color = Color(0, 51, 255, 255),
        model = "models/player/urban.mdl",
        description = [[As a S.W.A.T Sniper you will back up your other
S.W.A.T members when the are going to go take down
a drug or gang operation make sure you got there
back because its your job!
Raid = No
Job = V.I.P ]],
        weapons = {"rp_hands","weapon_real_cs_awp","m9k_aw50","m9k_remington7615p","m9k_intervention","m9k_psg1","m9k_svu","arrest_stick","unarrest_stick","door_ram"},
        command = "donatorsswatsniper",
        max = 4,
        salary = 75,
        admin = 1,
        vote = false,
        hasLicense = true
})
 
TEAM_Drug = AddExtraTeam("Drug Dealer", {
        color = Color(35, 0, 92, 253),
        model = "models/player/soldier_stripped.mdl",
        description = [[you are a drug dealer sell the drugs do it with out getting caught]],
        weapons = {"m9k_usp"},
        command = "Drugdelaer",
        max = 2,
        salary = 65,
        admin = 0,
        vote = true,
        hasLicense = false
})
 
TEAM_Assassin = AddExtraTeam("Assassin", {
        color = Color(92, 0, 0, 253),
        model = "models/player/arctic.mdl",
        description = [[your a assassin you work for what ever team or person pays you the most or by your liking to the team or person but you still have to be payed and your master is the master assassin]],
        weapons = {"lockpick","keypad_cracker","climb_swep2","m9k_usp"},
        command = "Assassin",
        max = 3,
        salary = 35,
        admin = 0,
        vote = false,
        hasLicense = false
})
 

 
TEAM_terrorist_leader = AddExtraTeam("Terrorist Leader", {
        color = Color(255, 8, 0, 258),
        model = "models/player/phoenix.mdl",
        description = [[your a terrorist leader you lead the terrorists to victory but dont kill normal people only cops and swat ]],
        weapons = {"m9k_ak47", "m9k_deagle"},
        command = "terroristleader",
        max = 1,
        salary = 85,
        admin = 0,
        vote = true,
        hasLicense = false
})
 
TEAM_Cripz = AddExtraTeam("Cripz", {
        color = Color(0, 71, 129, 251),
        model = {
                "models/player/Group03/Female_04.mdl",
                "models/player/Group03/Female_06.mdl",
                "models/player/Group03/Male_06.mdl",
                "models/player/Group03/Male_07.mdl",},
        description = [[Your a Cript protect your leader and earn your territory]],
        weapons = {"m9k_ak47", "m9k_usp","lockpick"},
        command = "Crips",
        max = 5,
        salary = 50,
        admin = 0,
        vote = false,
        hasLicense = false
})
 
TEAM_Crips_Leader = AddExtraTeam("Crips Leader", {
        color = Color(0, 140, 255, 251),
        model = {
                "models/player/Group03/Female_04.mdl",
                "models/player/Group03/Female_06.mdl",
                "models/player/Group03/Male_06.mdl",
                "models/player/Group03/Male_07.mdl",},
        description = [[Your The leader of the Crips do it well]],
        weapons = {"m9k_ak74", "m9k_deagle","lockpick"},
        command = "CripzLeader",
        max = 1,
        salary = 100,
        admin = 0,
        vote = false,
        hasLicense = true
})
 
TEAM_Bloodz = AddExtraTeam("Bloodz", {
        color = Color(82, 49, 0, 251),
        model = {
                "models/player/Group03/Female_04.mdl",
                "models/player/Group03/Female_06.mdl",
                "models/player/Group03/Male_06.mdl",
                "models/player/Group03/Male_07.mdl",},
        description = [[Your a Blood protect your leader and earn your territory]],
        weapons = {"m9k_ak47", "m9k_usp","lockpick"},
        command = "Bloodz",
        max = 5,
        salary = 75,
        admin = 0,
        vote = false,
        hasLicense = true
})
 
TEAM_Bloodz_Leader = AddExtraTeam("Bloodz Leader", {
        color = Color(176, 9, 0, 251),
        model = {
                "models/player/Group03/Female_04.mdl",
                "models/player/Group03/Female_06.mdl",
                "models/player/Group03/Male_06.mdl",
                "models/player/Group03/Male_07.mdl",},
        description = [[Your The leader of the bloodz do it well]],
        weapons = {"m9k_ak74", "m9k_deagle","lockpick"},
        command = "BloodzLeader",
        max = 1,
        salary = 100,
        admin = 0,
        vote = false,
        hasLicense = true
})
 
TEAM_Owner_On_Duty = AddExtraTeam("Owner on duty", {
        color = Color(255, 0, 0, 253),
        model = "models/player/combine_super_soldier.mdl",
        description = [[Owner On Duty]],
        weapons = {},
        command = "OwnerOnDuty",
        max = 1,
        salary = 0,
        admin = 3,
        vote = false,
        hasLicense = false
})
 
TEAM_CoOwner_On_Duty = AddExtraTeam("Co-Owner on duty", {
        color = Color(255, 0, 0, 253),
        model = "models/player/combine_super_soldier.mdl",
        description = [[CoOwner On Duty]],
        weapons = {},
        command = "CoOwnerOnDuty",
        max = 1,
        salary = 0,
        admin = 3,
        vote = false,
        hasLicense = false
})
 
TEAM_HeadAdmin_On_Duty = AddExtraTeam("HeadAdmin On Duty", {
        color = Color(255, 0, 0, 253),
        model = "models/player/combine_super_soldier.mdl",
        description = [[HeadAdmin On Duty]],
        weapons = {},
        command = "HeadAdminOnDuty",
        max = 3,
        salary = 0,
        admin = 2,
        vote = false,
        hasLicense = true
})
 
TEAM_Super_Admin_On_Duty = AddExtraTeam("SuperAdmin On Duty", {
        color = Color(255, 0, 0, 253),
        model = "models/player/combine_super_soldier.mdl",
        description = [[SuperAdmin On Duty]],
        weapons = {},
        command = "SuperAdminOnDuty",
        max = 3,
        salary = 0,
        admin = 2,
        vote = false,
        hasLicense = true
})
 
TEAM_Admin_On_Duty = AddExtraTeam("Admin on duty", {
        color = Color(255, 0, 0, 253),
        model = "models/player/combine_super_soldier.mdl",
        description = [[Admin On Duty]],
        weapons = {},
        command = "AdminOnDuty",
        max = 3,
        salary = 0,
        admin = 1,
        vote = false,
        hasLicense = true
})
 
TEAM_Mod_On_Duty = AddExtraTeam("Mod on duty", {
        color = Color(255, 0, 0, 253),
        model = "models/player/combine_super_soldier.mdl",
        description = [[Mod On Duty]],
        weapons = {},
        command = "ModOnDuty",
        max = 3,
        salary = 0,
        admin = 1,
        vote = false,
        hasLicense = true
})





-- 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
TEAM_CARDEALER    = TEAM_CARDEALER     or -1
TEAM_ANARCHIST    = TEAM_ANARCHIST     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("Goverment Officials Only", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
AddDoorGroup("Not Ownable.", TEAM_Owner_On_Duty)



/*
--------------------------------------------------------
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, TEAM_SWATCHIEF, TEAM_SWAT, TEAM_SWATSNIPER})


/*
---------------------------------------------------------------------------
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.

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

/*---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------*/
GM.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
---------------------------------------------------------------------------*/
GM.CivilProtection = {
	[TEAM_POLICE] = true,
	[TEAM_CHIEF] = true,
	[TEAM_MAYOR] = true,
	[TEAM_SS] = true,
	[TEAM_SWAT] = true,
	[TEAM_SWATMEDIC] = true,
	[TEAM_SWATLEADER] = true,
	[TEAM_SWATSNIPER] = true
}

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

First, Is your DarkRP Vanilla (Not custom, no added addons etc)
if yes, delete and download latest version.
Second, What did you last do to trigger this, when did it stop working?
Third, I really hope you didn’t mess with the core DarkRP files, cause then it’s your own fault
Forth, read the stickys, and if you changed the core DarkRP files, you may want to fix that… especially before going posting on darkrp forums

1 No
2 No clue
3 Yup, cant get darkrpconfig to work

I see you have DarkRP 2.5 or higher, why the hell are you editing core files? They clearly advise you not to do that. I think most people won’t even want to help you because of that reason XD

Yeah, I honestly am not gonna help and support you modifying the core files, it is clearly said not to, and in every folder it says don’t modify anything but, you think your so pro and can do what you want, well, now, since your so smart, can fix this by yourself.

I follow tutorials, im not some pro coder, im learning from the “Pro coders” And the reason i modify them is DarkRPConfig or whatever its called DOESNT WORK for me. i dont get any of it. So if you dont wanna help, dont bother even posting.

I’m sure people would be willing to help if it didn’t seem like your attitude about this was “here’s my code fix it for me”. Why didn’t you ask about your config not working before you went and edited the core files?

Well, look where modifying the DarkRP core files got you…

[editline]24th January 2014[/editline]

Yeah, he just put in lots of code that is not very helpful, especially when the error is at line 155…
Plus, it doesn’t sound like he even tried to use the DarkRPModificationAddon…
And, he is on the wrong forum.