DarkRP Server Help!

So I’m trying to add more jobs into my DarkRP server.

I’m using XenonServers as my host.

The LUA I’m using isn’t working and I’m wondering if you guys could explain it or give me a working one.


AddAgenda("Engineer's agenda", TEAM_chengineer, {TEAM_engineer})
TEAM_soldier = AddExtraTeam( "Combine Overwatch", Color( 0, 0, 0, 255 ), "models/player/combine_soldier.mdl", [[You are the primary military force of the Combine on Earth. Protect the CPs if they need help. However, if they aid the Resistance, kill them at all costs.]], {"weapon_real_cs_m4a1", "weapon_real_cs_pumpshotgun", "weapon_real_cs_desert_eagle", "weapon_real_cs_mp5a5"}, 'soldier', 2, 100, 0, 1, true, { 2 } )
TEAM_cpurbanunit = AddExtraTeam( "CP Urban Unit", Color( 0, 0, 0, 255 ), "models/player/urban.mdl", [[As a more heavily armed CP, you fight in close quarters where your friends might just get their heads blown off. Enjoy your shotgun, and don't wander into the open without a ranged weapon holder.]], {"lockpick", "door_ram", "arrest_stick", "unarrest_stick", "weaponchecker", "pocket", "keys", "weapon_real_cs_pumpshotgun", "weapon_real_cs_desert_eagle", "weapon_real_cs_knife"}, 'cpurbanunit', 1, 70, 0, 0, true, { 2 } )
TEAM_cpsniper = AddExtraTeam( "CP Sniper", Color( 0, 0, 0, 255 ), "models/player/riot.mdl", [[As a long-range fighter, you can help your friends by the headshots. The big kills. Don't get caught in a close-quarters fight without a CP Urban Unit!]], {"arrest_stick", "door_ram", "keys", "lockpick", "pocket", "stunstick", "unarrest_stick", "weaponchecker", "weapon_glock", "weapon_real_cs_scout"}, 'cpsniper', 1, 70, 0, 0, true, { 2 } )
TEAM_swat = AddExtraTeam( "S.W.A.T. Member", Color( 0, 0, 0, 255 ), "models/player/swat.mdl", [[Above the CPs and below the Overwatch, you rule the places where neither of the former will work well. Don't forget that you need your friends in order a make a successful run!]], {"arrest_stick", "door_ram", "keys", "lockpick", "pocket", "stunstick", "unarrest_stick", "weaponchecker", "weapon_real_cs_mp5a5", "weapon_real_cs_tmp", "weapon_real_cs_glock18", "weapon_real_cs_flash", "weapon_real_cs_m4a1"}, 'swat', 3, 65, 0, 1, true, {TEAM_POLICE} )
TEAM_doubleagent = AddExtraTeam( "Double Agent", Color( 0, 0, 0, 255 ), "models/player/barney.mdl", [[You can work for any of the two sides, the Rebels or the CPs. You got no salary as you need someone to pay you. No one can RDM you until you're paid!]], {"unarrest_stick", "stunstick", "med_kit", "weapon_real_cs_desert_eagle", "weapon_real_cs_mac10", "weapon_real_cs_mp5a5", "keys", "pocket"}, 'doubleagent', 1, 0, 0, 1, true )
TEAM_combinesniper = AddExtraTeam( "Combine Sniper", Color( 0, 0, 0, 255 ), "models/player/combine_soldier.mdl", [[You are the sniper division of Come Overwatch on Earth. Mainly, you'll be needed in the outlands as the CPs and S.W.A.T. cover the streets. Stay away from the fighting and blow off some Rebel heads!]], {"door_ram", "keys", "pocket", "weapon_real_cs_five-seven", "weapon_real_cs_flash", "weapon_real_cs_awp", "weapon_real_cs_sg552"}, 'combinesniper', 1, 110, 0, 0, true, { 12 } )
TEAM_rebel = AddExtraTeam( "Rebel", Color( 0, 0, 0, 255 ), "models/player/Group03/male_06.mdl", [[You are the basic member of the Resistance. You fight for liberation of humans from the Combine. As you are the basic infantry unit, get some real weapons from Gun Dealers, and fast.]], {"lockpick", "keys", "pocket", "weapon_real_cs_knife", "weapon_real_cs_five-seven"}, 'rebel', 5, 50, 0, 1, false )
TEAM_rebelleader = AddExtraTeam( "Rebel Leader", Color( 0, 0, 0, 255 ), "models/player/Group03/male_07.mdl", [[Leader of the Resistance against the Combine on Earth. Heavily armed, you should be able to fight on front lines almost always.]], {"unarrest_stick", "keys", "pocket", "weapon_real_cs_p90", "weapon_real_cs_ak47", "weapon_real_cs_desert_eagle", "weapon_real_cs_grenade", "lockpick", "door_ram"}, 'rebelleader', 1, 60, 0, 0, false, { 19 } )
TEAM_hevunit = AddExtraTeam( "HEV Unit", Color( 0, 0, 0, 255 ), "models/player/gasmask.mdl", [[You are a branch of the SWAT, serving in
places where regular soldiers, SWAT, or CPs can't work.
Zombies and Aliens will be your primary targets.]], {"weapon_real_cs_sg552", "weapon_shotgun", "weapon_real_cs_pumpshotgun", "weapon_real_cs_usp", "weapon_real_cs_grenade", "pocket", "door_ram", "arrest_stick", "unarrest_stick", "stunstick", "lockpick", "keys"}, 'hevunit', 2, 80, 0, 1, true, { 15 } )
TEAM_rebelsniper = AddExtraTeam( "Rebel Sniper", Color( 0, 0, 0, 255 ), "models/player/Group03/Male_04.mdl", [[Sniper division of the Resistance. Own some Combine from a distance.]], {"keys", "pocket", "lockpick", "weapon_real_cs_sg550", "weapon_real_cs_p228", "weapon_real_cs_knife"}, 'rebelsniper', 1, 60, 0, 0, false, { 18 } )
TEAM_zombie = AddExtraTeam( "Infected", Color( 0, 0, 0, 255 ), "models/player/classic.mdl", [[You are one of the Common Infected.
 Attack citizens and HEV Units.
Use your bugbait and crowbar to try and own them]], {"pocket", "lockpick", "weapon_crowbar", "weapon_crossbow", "weapon_bugbait"}, 'infected', 3, 45, 0, 0, false )
TEAM_engineer = AddExtraTeam( "Civil Engineer", Color(0, 0, 0, 255), "models/player/Group01/Male_07.mdl", [[You build shops and houses for people.
Players hire you so you to build.
 Specialist jobs await after you're voted into this class.]], {"keys", "pocket", "stunstick", "weapon_pistol"}, 'engineer', 3, 75, 0, 1, true )
TEAM_chengineer = AddExtraTeam( "Chief Engineer", Color(0, 0, 0, 255), "models/player/Group01/male_03.mdl", [[The only team that can prop-climb,
you build massive projects like bridges and towers.
Use these powers for society, but do NOT prop climb into peoples' bases]], {"keys", "pocket", "stunstick", "weapon_357"}, 'cengineer', 1, 100, 0, 0, true, {TEAM_engineer} )
TEAM_guard = AddExtraTeam( "Personal Guard", Color(0, 0, 0, 255), "models/player/alyx.mdl", [[Guard someone against all threats and keep them alive.
CPs, Gangsters, Burglars, Hitmen, all can be threats.]], {"keys", "pocket", "stunstick", "weapon_glock"}, 'guard', 3, 50, 0, false )

  1. What isn’t working? Are there any errors?
  2. What is the desired result?
  3. Put your code in

 tags.
4. Lua isn't an acronym.
  1. All jobs dissappear
  2. New jobs and the code to paste in
  3. Alright

What file did you put it in? Did you use the DarkRP Modification?

If u using DarkRP 2.5.1:

Use DarkRP.createJob instead of AddExtraTeam

copying old jobs in new darkrp might not work… You shouldnt be to lazy to make them yourself.

use darkrp modification addon and put in jobs.lua