Dark RP Jobs error?

Hi, I’ve got an error could somebody help me please?

I get this when attempting to join my server

[ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:232: table index is nil

  1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:232
  2. include - [C]:-1
    3. loadCustomDarkRPItems - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:111
    4. fn - gamemodes/darkrp/gamemode/libraries/modificationloader.lua:119
    5. unknown - addons/ulib/lua/ulib/shared/hook.lua:183

Thats my jobs file.



/*---------------------------------------------------------------------------
/*---------------------------------------------------------------------------
DarkRP custom jobs
---------------------------------------------------------------------------

This file contains your custom jobs.
This file should also contain jobs from DarkRP that you edited.

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

The default jobs can be found here:
<TODO: INSERT URL HERE>

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


Add jobs under the following line:
---------------------------------------------------------------------------*/
    TEAM_STALKER = DarkRP.createJob("Stalker", {
        color = Color(186, 184, 191, 255),
        model = "models/player/stalker.mdl",
        description = [[You're a stalker.
		You can break into peoples houses but NOT steal
		You follow people around and bug them.]],
        weapons = {""},
        command = "stalker", 
        max = 2,
        salary = 50,
        admin = 0,
        vote = false,
        hasLicense = true,
     })
	TEAM_PET = DarkRP.createJob("Pet", {
        color = Color(36, 232, 14, 255),
        model = "models/headcrabclassic.mdl",
        description = [[You're a non-vicious pet.
		Follow your owner around and help him out.
		Please do /job Owner's Name's Pet]],
        weapons = {""},
        command = "pet", 
        max = 3,
        salary = 0,
        admin = 0,
        vote = false,
        hasLicense = true,
     })
		TEAM_SINGER = DarkRP.createJob("Singer", {
        color = Color(242, 118, 29, 255),
        model = "models/alyx.mdl",
        description = [[You're a small time singer!
		You can not go around singing on the streets.
		Make a club and invite people in.
		You MAY play music as long as it isn't troll/hate music.]],
        weapons = {""},
        command = "singer", 
        max = 1,
        salary = 50,
        admin = 0,
        vote = false,
        hasLicense = true,
     })
	TEAM_BANKER = DarkRP.createJob("Banker", {
        color = Color(43, 194, 217, 255),
        model = "models/Characters/Hostage_01.mdl",
        description = [[You can legally store money printers for others!
		You can not use these printers, Just store them.]],
        weapons = {""},
        command = "banker", 
        max = 1,
        salary = 120,
        admin = 0,
        vote = false,
        hasLicense = true,
     })
	TEAM_RAIDER = DarkRP.createJob("Raider", {
        color = Color(60, 61, 94, 255),
        model = "models/player/t_phoenix.mdl",
        description = [[You are a Raider!
		You can raid but only with your leader!
		Your leader must /advert raid.]],
        weapons = {"lockpick"},
        command = "raider", 
        max = 6,
        salary = 20,
        admin = 0,
        vote = false,
        hasLicense = true,
     })
	TEAM_RAIDLEADER = DarkRP.createJob("Raid Leader", {
        color = Color(27, 27, 41, 255),
        model = "models/gman_high.mdl",
        description = [[You are a Raid Leader!!
		You can raid but you must have ATLEAST one raider with you!
		Remember to /advert raid.]],
        weapons = {"keypad_cracker"},
        command = "raidleader", 
        max = 1,
        salary = 40,
        admin = 0,
        vote = false,
        hasLicense = true,
     })
	TEAM_KIDNAPPER = DarkRP.createJob("Kidnapper", {
        color = Color(103, 20, 204, 255),
        model = "models/Humans/Group01/male_03.mdl",
        description = [[You are a kidnapper.
		You can only kidnap people who are alone
		You have to /advert kidnap and you have to release them if they pay up.]],
        weapons = {""},
        command = "kidnapper", 
        max = 1,
        salary = 40,
        admin = 0,
        vote = false,
        hasLicense = true,
     })
    TEAM_LAWYER = DarkRP.createJob("Lawyer", {
        color = Color(112, 128, 230, 255),
        model = "models/Characters/hostage_03.mdl",
        description = [[You are a highly trained Lawyer
		who can get people out of anything!
		People must pay you atleast $100 to be bailed.]],
        weapons = {""},
        command = "lawyer", 
        max = 1,
        salary = 40,
        admin = 0,
        vote = false,
        hasLicense = true,
     })
	TEAM_THIEF = DarkRP.createJob("Thief", {
        color = Color(182, 178, 184, 255),
        model = "models/Characters/hostage_03.mdl",
        description = [[You're a sneaky thief.
		You can break into peoples homes, ONLY when nobody is in.
		If you get shot you run and hide.
		Thief's don't have to /advert raid.]],
        weapons = {"lockpick"},
        command = "thief", 
        max = 8,
        salary = 25,
        admin = 0,
        vote = false,
        hasLicense = false,
     })
	TEAM_ARCHITECT = DarkRP.createJob("Architect", {
        color = Color(102, 148, 199, 255),
        model = "models/Characters/hostage_04.mdl",
        description = [[You're a pro builder.
		You help people build unraidable bases for money.
		You can also SELL the base design to raiders.
		DO NOT BUILD SOMETHING TO HELP RAIDERS.]],
        weapons = {""},
        command = "architect", 
        max = 2,
        salary = 145,
        admin = 0,
        vote = false,
        hasLicense = true,
     })
	TEAM_HOBOKING = DarkRP.createJob("Hobo King", {
        color = Color(102, 148, 199, 255),
        model = "models/Characters/hostage_04.mdl",
        description = [[You're a hobo king!
		You're the filthiest and richest hobo!
		Its your job to lead the hobos and build a hobo town togother!
		Do not build on roads.]],
        weapons = {""},
        command = "hoboking", 
        max = 1,
        salary = 2,
        admin = 0,
        vote = false,
        hasLicense = true,
     })
	TEAM_NINJA = DarkRP.createJob("Ninja", {
        color = Color(245, 155, 25, 255),
        model = "models//player/t_arctic.mdl",
        description = [[You're a ninja!
		You can raid other ninjas but you MUST be with your leader.
		Your leader must be the one who /adverts raid]],
        weapons = {"grappling_hook"},
        command = "ninja", 
        max = 6,
        salary = 50,
        admin = 0,
        vote = false,
        hasLicense = true,
     })
	TEAM_NINJAMASTER = DarkRP.createJob("Ninja Master", {
        color = Color(250, 96, 0, 255),
        model = "models/player/t_guerilla.mdl",
        description = [[You're a ninja master!
		You can raid other ninjas but YOU must advert raid.]],
        weapons = {"grappling_hook"},
        command = "ninja", 
        max = 1,
        salary = 75,
        admin = 0,
        vote = false,
        hasLicense = true,
     })
    TEAM_AOD = DarkRP.createJob("Admin On Duty", {
        color = Color(255, 255, 255, 100),
        model = "models/player/combine_super_soldier.mdl",
        description = [[Help people and shit.]],
        weapons = {""},
        command = "aod", 
        max = 6,
        salary = 1,
        admin = 0,
        vote = false,
        hasLicense = true,
		customCheck = function(ply) return ply:IsUserGroup("admin") or ply:IsUserGroup("superadmin") or ply:IsUserGroup("trialadmin") end,
        CustomCheckFailMsg = "This job is Admin only!",
     })







/*---------------------------------------------------------------------------
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_CP] = true,
	[TEAM_SWAT] = true,
	[TEAM_SWATCHIEF] = true,
	[TEAM_SWATMEDIC] = true,
	[TEAM_SWATSNIPER] = true,
	[TEAM_MAYOR] = true,
}

/*---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------*/
DarkRP.addHitmanTeam(TEAM_ASSASSIN)
DarkRP.addHitmanTeam(TEAM_HITMAN)


You put a , at all Jobs on hasLicense = true,

Thast wrong and is causing your Error take this code i edited for you !

Try it it should work without an Error.


/*---------------------------------------------------------------------------
/*---------------------------------------------------------------------------
DarkRP custom jobs
---------------------------------------------------------------------------

This file contains your custom jobs.
This file should also contain jobs from DarkRP that you edited.

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

The default jobs can be found here:
<TODO: INSERT URL HERE>

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


Add jobs under the following line:
---------------------------------------------------------------------------*/
    TEAM_STALKER = DarkRP.createJob("Stalker", {
        color = Color(186, 184, 191, 255),
        model = "models/player/stalker.mdl",
        description = [[You're a stalker.
		You can break into peoples houses but NOT steal
		You follow people around and bug them.]],
        weapons = {""},
        command = "stalker", 
        max = 2,
        salary = 50,
        admin = 0,
        vote = false,
        hasLicense = true
     })
	TEAM_PET = DarkRP.createJob("Pet", {
        color = Color(36, 232, 14, 255),
        model = "models/headcrabclassic.mdl",
        description = [[You're a non-vicious pet.
		Follow your owner around and help him out.
		Please do /job Owner's Name's Pet]],
        weapons = {""},
        command = "pet", 
        max = 3,
        salary = 0,
        admin = 0,
        vote = false,
        hasLicense = true
     })
		TEAM_SINGER = DarkRP.createJob("Singer", {
        color = Color(242, 118, 29, 255),
        model = "models/alyx.mdl",
        description = [[You're a small time singer!
		You can not go around singing on the streets.
		Make a club and invite people in.
		You MAY play music as long as it isn't troll/hate music.]],
        weapons = {""},
        command = "singer", 
        max = 1,
        salary = 50,
        admin = 0,
        vote = false,
        hasLicense = true
     })
	TEAM_BANKER = DarkRP.createJob("Banker", {
        color = Color(43, 194, 217, 255),
        model = "models/Characters/Hostage_01.mdl",
        description = [[You can legally store money printers for others!
		You can not use these printers, Just store them.]],
        weapons = {""},
        command = "banker", 
        max = 1,
        salary = 120,
        admin = 0,
        vote = false,
        hasLicense = true
     })
	TEAM_RAIDER = DarkRP.createJob("Raider", {
        color = Color(60, 61, 94, 255),
        model = "models/player/t_phoenix.mdl",
        description = [[You are a Raider!
		You can raid but only with your leader!
		Your leader must /advert raid.]],
        weapons = {"lockpick"},
        command = "raider", 
        max = 6,
        salary = 20,
        admin = 0,
        vote = false,
        hasLicense = true
     })
	TEAM_RAIDLEADER = DarkRP.createJob("Raid Leader", {
        color = Color(27, 27, 41, 255),
        model = "models/gman_high.mdl",
        description = [[You are a Raid Leader!!
		You can raid but you must have ATLEAST one raider with you!
		Remember to /advert raid.]],
        weapons = {"keypad_cracker"},
        command = "raidleader", 
        max = 1,
        salary = 40,
        admin = 0,
        vote = false,
        hasLicense = true
     })
	TEAM_KIDNAPPER = DarkRP.createJob("Kidnapper", {
        color = Color(103, 20, 204, 255),
        model = "models/Humans/Group01/male_03.mdl",
        description = [[You are a kidnapper.
		You can only kidnap people who are alone
		You have to /advert kidnap and you have to release them if they pay up.]],
        weapons = {""},
        command = "kidnapper", 
        max = 1,
        salary = 40,
        admin = 0,
        vote = false,
        hasLicense = true
     })
    TEAM_LAWYER = DarkRP.createJob("Lawyer", {
        color = Color(112, 128, 230, 255),
        model = "models/Characters/hostage_03.mdl",
        description = [[You are a highly trained Lawyer
		who can get people out of anything!
		People must pay you atleast $100 to be bailed.]],
        weapons = {""},
        command = "lawyer", 
        max = 1,
        salary = 40,
        admin = 0,
        vote = false,
        hasLicense = true
     })
	TEAM_THIEF = DarkRP.createJob("Thief", {
        color = Color(182, 178, 184, 255),
        model = "models/Characters/hostage_03.mdl",
        description = [[You're a sneaky thief.
		You can break into peoples homes, ONLY when nobody is in.
		If you get shot you run and hide.
		Thief's don't have to /advert raid.]],
        weapons = {"lockpick"},
        command = "thief", 
        max = 8,
        salary = 25,
        admin = 0,
        vote = false,
        hasLicense = false,
     })
	TEAM_ARCHITECT = DarkRP.createJob("Architect", {
        color = Color(102, 148, 199, 255),
        model = "models/Characters/hostage_04.mdl",
        description = [[You're a pro builder.
		You help people build unraidable bases for money.
		You can also SELL the base design to raiders.
		DO NOT BUILD SOMETHING TO HELP RAIDERS.]],
        weapons = {""},
        command = "architect", 
        max = 2,
        salary = 145,
        admin = 0,
        vote = false,
        hasLicense = true
     })
	TEAM_HOBOKING = DarkRP.createJob("Hobo King", {
        color = Color(102, 148, 199, 255),
        model = "models/Characters/hostage_04.mdl",
        description = [[You're a hobo king!
		You're the filthiest and richest hobo!
		Its your job to lead the hobos and build a hobo town togother!
		Do not build on roads.]],
        weapons = {""},
        command = "hoboking", 
        max = 1,
        salary = 2,
        admin = 0,
        vote = false,
        hasLicense = true
     })
	TEAM_NINJA = DarkRP.createJob("Ninja", {
        color = Color(245, 155, 25, 255),
        model = "models//player/t_arctic.mdl",
        description = [[You're a ninja!
		You can raid other ninjas but you MUST be with your leader.
		Your leader must be the one who /adverts raid]],
        weapons = {"grappling_hook"},
        command = "ninja", 
        max = 6,
        salary = 50,
        admin = 0,
        vote = false,
        hasLicense = true
     })
	TEAM_NINJAMASTER = DarkRP.createJob("Ninja Master", {
        color = Color(250, 96, 0, 255),
        model = "models/player/t_guerilla.mdl",
        description = [[You're a ninja master!
		You can raid other ninjas but YOU must advert raid.]],
        weapons = {"grappling_hook"},
        command = "ninja", 
        max = 1,
        salary = 75,
        admin = 0,
        vote = false,
        hasLicense = true
     })
    TEAM_AOD = DarkRP.createJob("Admin On Duty", {
        color = Color(255, 255, 255, 100),
        model = "models/player/combine_super_soldier.mdl",
        description = [[Help people and shit.]],
        weapons = {""},
        command = "aod", 
        max = 6,
        salary = 1,
        admin = 0,
        vote = false,
        hasLicense = true,
		customCheck = function(ply) return ply:IsUserGroup("admin") or ply:IsUserGroup("superadmin") or ply:IsUserGroup("trialadmin") end,
        CustomCheckFailMsg = "This job is Admin only!",
     })



Hi i’m getting this error now?



ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:51: '}' expected (to close '{' at line 44) near 'ass'
  1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:0


Please help, thanks

vontiagaming read the code its not that hard even for people that dont know lua at least try if you cant figure it out ask again

[editline]28th February 2014[/editline]

Fine il be nice but try next time dude


/*---------------------------------------------------------------------------
/*---------------------------------------------------------------------------
DarkRP custom jobs
---------------------------------------------------------------------------

This file contains your custom jobs.
This file should also contain jobs from DarkRP that you edited.

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

The default jobs can be found here:
<TODO: INSERT URL HERE>

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


Add jobs under the following line:
---------------------------------------------------------------------------*/
    TEAM_STALKER = DarkRP.createJob("Stalker", {
        color = Color(186, 184, 191, 255),
        model = "models/player/stalker.mdl",
        description = [[You're a stalker.
		You can break into peoples houses but NOT steal
		You follow people around and bug them.]],
        weapons = {""},
        command = "stalker", 
        max = 2,
        salary = 50,
        admin = 0,
        vote = false,
        hasLicense = true
     })
	TEAM_PET = DarkRP.createJob("Pet", {
        color = Color(36, 232, 14, 255),
        model = "models/headcrabclassic.mdl",
        description = [[You're a non-vicious pet.
		Follow your owner around and help him out.
		Please do /job Owner's Name's Pet]],
        weapons = {""},
        command = "pet", 
        max = 3,
        salary = 0,
        admin = 0,
        vote = false,
        hasLicense = true
     })
		TEAM_SINGER = DarkRP.createJob("Singer", {
        color = Color(242, 118, 29, 255),
        model = "models/alyx.mdl",
        description = [[You're a small time singer!
		You can not go around singing on the streets.
		Make a club and invite people in.
		You MAY play music as long as it isn't troll/hate music.]],
        weapons = {""},
        command = "singer", 
        max = 1,
        salary = 50,
        admin = 0,
        vote = false,
        hasLicense = true
     })
	TEAM_BANKER = DarkRP.="function call">createJob("Banker", {
        color = Color(43, 194, 217, 255),
        model = "models/Characters/Hostage_01.mdl",
        description = [[You can legally store money printers ="keyword">for others!
		You can not use these printers, Just store them.]],
        weapons = {""},
        command = "banker", 
        max = 1,
        salary = 120,
        admin = 0,
        vote = false,
        hasLicense = true
     })
	TEAM_RAIDER = DarkRP.="function call">createJob("Raider", {
        color = Color(60, 61, 94, 255),
        model = "models/player/t_phoenix.mdl",
        description = [[You are a Raider!
		You can raid but only with your leader="keyword operator">!
		Your leader must /advert raid.]],
        weapons = {"lockpick"},
        command = "raider", 
        max = 6,
        salary = 20,
        admin = 0,
        vote = false,
        hasLicense = true
     })
	TEAM_RAIDLEADER = DarkRP.="function call">createJob("Raid Leader", {
        color = Color(27, 27, 41, 255),
        model = "models/gman_high.mdl",
        description = [[You are a Raid Leader!!
		You can raid but you must have ATLEAST one raider with you="keyword operator">!
		Remember to /advert raid.]],
        weapons = {"keypad_cracker"},
        command = "raidleader", 
        max = 1,
        salary = 40,
        admin = 0,
        vote = false,
        hasLicense = true
     })
	TEAM_KIDNAPPER = DarkRP.="function call">createJob("Kidnapper", {
        color = Color(103, 20, 204, 255),
        model = "models/Humans/Group01/male_03.mdl",
        description = [[You are a kidnapper.
		You can only kidnap people who are alone
		You have to /advert kidnap ="keyword">and you have to release them if they pay up.]],
        weapons = {""},
        command = "kidnapper", 
        max = 1,
        salary = 40,
        admin = 0,
        vote = false,
        hasLicense = true
     })
    TEAM_LAWYER = DarkRP.="function call">createJob("Lawyer", {
        color = Color(="constant numeric">112, 128, 230, 255),
        model = "models/Characters/hostage_03.mdl",
        description = [[You are a highly trained Lawyer
		who can get people out of anything!
		People must pay you atleast $="constant numeric">100 to be bailed.]],
        weapons = {""},
        command = "lawyer", 
        max = 1,
        salary = 40,
        admin = 0,
        vote = false,
        hasLicense = true
     })
	TEAM_THIEF = DarkRP.="function call">createJob("Thief", {
        color = Color(182, 178, 184, 255),
        model = "models/Characters/hostage_03.mdl",
        description = [[You're a sneaky thief.
		You can ="keyword">break into peoples homes, ONLY when nobody is in.
		If you get shot you run and hide.
		Thief's don't have to /advert raid.]],
        weapons = {"lockpick"},
        command = "thief", 
        max = 8,
        salary = 25,
        admin = 0,
        vote = false,
        hasLicense = false,
     })
	TEAM_ARCHITECT = DarkRP.="function call">createJob("Architect", {
        color = Color(102, 148, 199, 255),
        model = "models/Characters/hostage_04.mdl",
        description = [[You're a pro builder.
		You help people build unraidable bases ="keyword">for money.
		You can also SELL the base design to raiders.
		DO NOT BUILD SOMETHING TO HELP RAIDERS.]],
        weapons = {""},
        command = "architect", 
        max = 2,
        salary = 145,
        admin = 0,
        vote = false,
        hasLicense = true
     })
	TEAM_HOBOKING = DarkRP.createJob("Hobo King", {
        color = Color(102, 148, 199, 255),
        model = "models/Characters/hostage_04.mdl",
        description = [[You're a hobo king!
		You're the filthiest ="keyword">and richest hobo!
		Its your job to lead the hobos and build a hobo town togother!
		Do not build on roads.]],
        weapons = {""},
        command = "hoboking", 
        max = 1,
        salary = 2,
        admin = 0,
        vote = false,
        hasLicense = true
     })
	TEAM_NINJA = DarkRP.createJob("Ninja", {
        color = Color(245, 155, 25, 255),
        model = "models//player/t_arctic.mdl",
        description = [[You're a ninja!
		You can raid other ninjas but you MUST be with your leader.
		Your leader must be the one who /adverts raid]],
        weapons = {"grappling_hook"},
        command = "ninja", 
        max = 6,
        salary = 50,
        admin = 0,
        vote = false,
        hasLicense = true
     })
	TEAM_NINJAMASTER = DarkRP.createJob("Ninja Master", {
        color = Color(250, 96, 0, 255),
        model = "models/player/t_guerilla.mdl",
        description = [[You're a ninja master!
		You can raid other ninjas but YOU must advert raid.]],
        weapons = {"grappling_hook"},
        command = "ninja", 
        max = 1,
        salary = 75,
        admin = 0,
        vote = false,
        hasLicense = true
     })
    TEAM_AOD = DarkRP.createJob("Admin On Duty", {
        color = Color(255, 255, 255, 100),
        model = "models/player/combine_super_soldier.mdl",
        description = [[Help people and shit.]],
        weapons = {""},
        command = "aod", 
        max = 6,
        salary = 1,
        admin = 0,
        vote = false,
        hasLicense = true,
		customCheck = function(ply) return ply:function call">IsUserGroup("admin") or ply:IsUserGroup("superadmin") or ply:IsUserGroup("trialadmin") end,
        CustomCheckFailMsg = "This job is Admin only!",
     })

[editline]28th February 2014[/editline]

Also dayrule why would you purposely put a code in there that doesnt work? its not in his original you obviously put it there to troll him.

The model is wrong,

The right line is :

model = {“model”},

and you made :

model = “model”,

[editline]11th November 2016[/editline]

and put space under jobs, like :

TEAM_NINJAMASTER = DarkRP.createJob(“Ninja Master”, {
color = Color(250, 96, 0, 255),
model = “models/player/t_guerilla.mdl”,
description = [[You’re a ninja master!
You can raid other ninjas but YOU must advert raid.]],
weapons = {“grappling_hook”},
command = “ninja”,
max = 1,
salary = 75,
admin = 0,
vote = false,
hasLicense = true
})

TEAM_AOD = DarkRP.createJob(“Admin On Duty”, {
color = Color(255, 255, 255, 100),
model = “models/player/combine_super_soldier.mdl”,
description = [[Help people and shit.]],
weapons = {""},
command = “aod”,
max = 6,
salary = 1,
admin = 0,
vote = false,
hasLicense = true,
customCheck = function(ply) return ply:function call">IsUserGroup(“admin”) or ply:IsUserGroup(“superadmin”) or ply:IsUserGroup(“trialadmin”) end,
CustomCheckFailMsg = “This job is Admin only!”,
})

model = “model”,

is also an acceptable function.