DarkRp Default Job Help

So I am making a DarkRP server based around a zombie roleplay. I wanted to change the default job “Citizen” to a different job “Survivor”.
I have disabled the default citizen job under disabled_defaults.lua and have this under the darkrpmodification-master\lua\darkrp_customthings\jobs.lua :

TEAM_SURVIVOR = DarkRP.createJob(“Survivor”, {
color = Color(20, 150, 20, 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 Survivor is the most basic level of society you can hold. You have no specific role in this life.]],
weapons = {“m9k_sig_p229r”,“m9k_mp5sd”},
command = “survivor”,
max = 0,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
candemote = false
})

TEAM_BANDIT = DarkRP.createJob(“Bandit”, {
color = Color(138, 8, 8, 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 Bandit robs survivors and kill Heros. You MUST roleplay the robbery and CANNOT KOS.]],
weapons = {“m9k_hk45”,“m9k_mp7”},
command = “bandit”,
max = 0,
salary = 75,
admin = 0,
vote = false,
hasLicense = false,
candemote = false
})
/---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------
/
GAMEMODE.DefaultTeam = TEAM_SURVIVOR

/---------------------------------------------------------------------------
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] = false,
[TEAM_CHIEF] = false,
[TEAM_MAYOR] = false,
}
/---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------
/
DarkRP.addHitmanTeam(TEAM_MOB)

When people spawn in the server, they have no job at all, but you can still pick the survivor job in the F4 menu. Any help would be much appreciated.
Thanks!

Don’t edit the addon modifacation file when editing default jobs. Edit the base jobs.lua and put it above TEAM_CITIZEN. Not addons/darkrpmodifactions as that just adds more jobs( I presume).

Rubbish. There’s something called disabled_defaults.lua where you can disable the default jobs. Then you can copy the job into your addon’s jobs.lua.

But that’s not the problem. It’s not the case of the first job is the default one. There’s a GAMEMODE.DefaultTeam setting.

@OP Does setting the DefaultTeam to another base job work (eg TEAM_HOBO)?

Ah my bad! Just trying to help the easiest way I can think of.

I have not tired. Just got home so Ill have a look in a bit. Thanks for the reply.

EDIT: I have also found out, when I start the server for the first time, it loads as the survivor job but when ever the server kicks people for lua error (that’s my fault, coding while people are in the server) everyone reconnects with no job.

EDIT 2: I have added the TEAM_HOBO to the jobs and renamed it Scavenger. Everything seems to be alright. It must just be bugged out when people get lua errors.

Put sv_kickerrornum 0 in your server.cfg to prevent kicking.

Also don’t know if this is something to note, but when I hold tab and select a job to force a player, the default job “Survivor” is listed twice. Everything else is listed once.

but i like counter terrorism so i made counter terrorism training camp

http://www.youtube.com/watch?v=Cy_x1poCYxQ

:rock:

-snip-

Everything there looks fine. Are you sure that job includes line 52?

-snip-