-- 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. --------------------------------------------------------]] -- 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_COOK = TEAM_COOK or -1 -- Door groups AddDoorGroup("Cops and Mayor only", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR) AddDoorGroup("Gundealer only", TEAM_GUN) -- Agendas DarkRP.createAgenda("Gangster's agenda", TEAM_MOB, {TEAM_GANG}) DarkRP.createAgenda("Police agenda", {TEAM_MAYOR, TEAM_CHIEF}, {TEAM_POLICE}) -- Group chats DarkRP.createGroupChat(function(ply) return ply:isCP() end) DarkRP.createGroupChat(TEAM_MOB, TEAM_GANG) DarkRP.createGroupChat(function(listener, ply) return not ply or ply:Team() == listener:Team() end) -- Initial team when first spawning GAMEMODE.DefaultTeam = TEAM_CITIZEN -- Teams that belong to Civil Protection GAMEMODE.CivilProtection = { [TEAM_POLICE] = true, [TEAM_CHIEF] = true, [TEAM_MAYOR] = true, } -- Hitman team DarkRP.addHitmanTeam(TEAM_MOB) -- Demote groups DarkRP.createDemoteGroup("Cops", {TEAM_POLICE, TEAM_CHIEF}) DarkRP.createDemoteGroup("Gangsters", {TEAM_GANG, TEAM_MOB}) -- Default categories DarkRP.createCategory{ name = "Citizens", categorises = "jobs", startExpanded = true, color = Color(0, 107, 0, 255), canSee = fp{fn.Id, true}, sortOrder = 100, } DarkRP.createCategory{ name = "Civil Protection", categorises = "jobs", startExpanded = true, color = Color(25, 25, 170, 255), canSee = fp{fn.Id, true}, sortOrder = 101, } DarkRP.createCategory{ name = "Gangsters", categorises = "jobs", startExpanded = true, color = Color(75, 75, 75, 255), canSee = fp{fn.Id, true}, sortOrder = 101, } DarkRP.createCategory{ name = "Other", categorises = "jobs", startExpanded = true, color = Color(0, 107, 0, 255), canSee = fp{fn.Id, true}, sortOrder = 255, }