gmod darkrp server lua problem

hi i have a lua problem and i cant solve it can you help me this is hte problem:[ERROR] A runtime error has occurred in “your jobs” on line -1.
The best help I can give you is this:

The category of “Citizen” (“Other”) does not exist!

Hints:
- Make sure the category is created with DarkRP.createCategory.
- The category name is case sensitive!
- Categories must be created before DarkRP finished loading.

The responsibility for this error lies with (the authors of) one (or more) of these files:
your jobs

i hope that you can help me

Can you show us line one of “your jobs.lua”?

This error report literally spells it out though because DarkRP has that fancy error reporting.

–[[---------------------------------------------------------------------------
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:

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

Add jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_CITIZEN = AddExtraTeam(“Citizen”, Color(20, 150, 20, 255), “models/player/group01/male_01.mdl”, [[The Citizen is the most basic level of society you can hold
besides being a hobo.
You have no specific role in city life.]], {}, “citizen”, 0, 45, 0, false, false)

TEAM_POLICE = AddExtraTeam(“Civil Protection”, Color(25, 25, 170, 255), “models/player/police.mdl”, [[The protector of every citizen that lives in the city .
You have the power to arrest criminals and protect innocents.
Hit them with your arrest baton to put them in jail
Bash them with a stunstick and they might learn better than to disobey
the law.
The Battering Ram can break down the door of a criminal with a warrant
for his/her arrest.
The Battering Ram can also unfreeze frozen props(if enabled).
Type /wanted <name> to alert the public to this criminal
OR go to tab and warrant someone by clicking the warrant button]], {“arrest_stick”, “unarrest_stick”, “weapon_glock2”, “stunstick”, “door_ram”, “weaponchecker”, “item_ammo_pistol”}, “cp”, 4, 65, 0, true, true)

TEAM_GANG = AddExtraTeam(“Gangster”, Color(75, 75, 75, 255), “models/player/group03/male_01.mdl”, [[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.]], {}, “gangster”, 3, 45, 0, false, false)

TEAM_MOB = AddExtraTeam(“Mob boss”, Color(25, 25, 25, 255), “models/player/gman_high.mdl”, [[The Mobboss is the boss of the criminals in the city.
With his power he coordinates the gangsters and forms an efficent crime
organization.
He has the ability to break into houses by using a lockpick.
The Mobboss also can unarrest you.]], {“lockpick”, “unarrest_stick”}, “mobboss”, 1, 60, 0, false, false)

TEAM_GUN = AddExtraTeam(“Gun Dealer”, Color(255, 140, 0, 255), “models/player/monk.mdl”, [[A gun dealer is the only person who can sell guns to other
people.
However, make sure you aren’t caught selling guns that are illegal to
the public.
/Buyshipment <name> to Buy a weapon shipment
/Buygunlab to Buy a gunlab that spawns P228 pistols]], {}, “gundealer”, 2, 45, 0, false, false)

TEAM_MEDIC = AddExtraTeam(“Medic”, Color(47, 79, 79, 255), “models/player/kleiner.mdl”, [[With your medical knowledge, you heal players to proper
health.
Without a medic, people can not be healed.
Left click with the Medical Kit to heal other players.
Right click with the Medical Kit to heal yourself.]], {“med_kit”}, “medic”, 3, 45, 0, false, false)

TEAM_COOK = AddExtraTeam(“Cook”, Color(238, 99, 99, 255), “models/player/mossman.mdl”, [[As a cook, it is your responsibility to feed the other members
of your city.
You can spawn a microwave and sell the food you make:
/Buymicrowave]], {}, “cook”, 2, 45, 0, 0, false)

TEAM_CHIEF = AddExtraTeam(“Civil Protection Chief”, Color(20, 20, 255, 255), “models/player/combine_soldier_prisonguard.mdl”, [[The Chief is the leader of the Civil Protection unit.
Coordinate the police forces to bring law to the city
Hit them with arrest baton to put them in jail
Bash them with a stunstick and they might learn better than to
disobey 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 this criminal
Type /jailpos to set the Jail Position]], {“arrest_stick”, “unarrest_stick”, “weapon_deagle2”, “stunstick”, “door_ram”, “weaponchecker”, “item_ammo_pistol”}, “chief”, 1, 75, 0, false, true, TEAM_POLICE)

TEAM_MAYOR = AddExtraTeam(“Mayor”, Color(150, 20, 20, 255), “models/player/breen.mdl”, [[The Mayor of the city creates laws to serve the greater good
of the people.
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]], {“item_ammo_pistol”}, “mayor”, 1, 85, 0, true, false/, {TEAM_CHIEF, TEAM_POLICE}/)
/*

HOW TO MAKE AN EXTRA CLASS!!!

You can make extra classes here. Set everything up here and the rest will be done for you! no more editing 100 files without knowing what you’re doing!!!
Ok here’s how:

To make an extra class do this:
AddExtraTeam( “<NAME OF THE CLASS>”, Color(<red>, <Green>, <blue>, 255), “<Player model>” , [[<the description(it can have enters)>]], { “<first extra weapon>”,"<second extra weapon>", etc…}, “<chat command to become it(WITHOUT THE /!)>”, <maximum amount of this team> <the salary he gets>, 0/1/2 = public /admin only / superadmin only, <1/0/true/false Do you have to vote to become it>, true/false DOES THIS TEAM HAVE A GUN LICENSE?, TEAM: Which team you need to be to become this team)

The real example is here: it’s the Hobo: */

–VAR without /!!! The name the color(what you see in tab) the player model The description
TEAM_HOBO = AddExtraTeam(“Hobo”, Color(80, 45, 0, 255), “models/player/corpse1.mdl”, [[The lowest member of society. All people see you laugh.
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]], {“weapon_bugbait”}, “hobo”, 5, 0, 0, false)
//No extra weapons say /hobo to become hobo Maximum hobo’s = 5 his salary = 0 because hobo’s don’t earn money. 0 = everyone can become hobo , false = you don’t have to vote to become hobo
// MAKE SURE THAT THERE IS NO / IN THE TEAM NAME OR IN THE TEAM COMMAND:
// TEAM_/DUDE IS WROOOOOONG !!!
// HAVING “/dude” IN THE COMMAND FIELD IS WROOOOOOOONG!!!
//ADD TEAMS UNDER THIS LINE:
TEAM_SWAT = AddExtraTeam(“S.W.A.T”, Color(0,204,255,255), “models/player/combine_super_soldier.mdl”, [[S.W.A.T is some who come in, when the police is having trouble.]], {“weapon_real_cs_p228”, “weapon_real_cs_mac10”, “item_ammo_pistol”}, “swat”, 2, 70, 0, false, true, TEAM_POLICE)
TEAM_GUARD = AddExtraTeam(“Guard”, Color(0,255,0,255), “models/player/soldier_stripped.mdl”, [[Guards get hired to protect other people.]],
{“weapon_real_cs_glock18”}, “guard”, 2, 45, 0, false, true)
TEAM_HITMAN = AddExtraTeam(“Hitman”, Color(153,51,51,255), “models/player/barney.mdl”, [[Hitmen’s are people that kills for money.
But they cant do it for free or just kill them self.]], {“weapon_real_cs_glock18”}, “hitman”, 2, 45, 0, false, true)
TEAM_BANKER = AddExtraTeam(“Banker”, Color(102,0,102,255), “models/player/eli.mdl”, [[Bankers are people storing stuff for other.
They cant take deposited items for themself!]], {}, “banker”, 1, 50, 0, false, false)
TEAM_DRUG = AddExtraTeam(“Drug Dealer”, Color(255,102,0,255), “models/player/male_07.mdl”, [[Drug Dealers sell drugs.
But dont get arrested by the cops!]], {}, “drugdealer”, 2, 35, 0, false, false)
TEAM_NINJA = AddExtraTeam(“Ninja”, Color(255,102,0,255), “models/player/t_guerilla.mdl”, [[Youre a ninja trained from you were borned!
Remember to take orders from your master.]], {“weapon_real_cs_knife”}, “ninja”, 3, 30, 0, false, false)
TEAM_MASTER = AddExtraTeam(“Ninja Master”, Color(204,153,204,255), “models/player/t_arctic.mdl”, [[Youre a ninja trained from you were borned!
Command your ninjas to do what you want.]], {“weapon_real_cs_knife”, “lockpick”}, “ninjamaster”, 1, 55, 0, false, false)
TEAM_SS = AddExtraTeam(“Secret Service”, Color(102,102,51,255), “models/player/t_leet.mdl”, [[Secret Service are some people,
that protect the mayor!]], {“weapon_real_cs_m4a1”, “weapon_real_cs_five-seven”, “weapon_real_cs_knife”}, “secretservice”, 2, 70, 0, true, true)
TEAM_TERRORIST = AddExtraTeam(“Terrorist”, Color(204,153,153,255), “models/player/t_guerilla.mdl”, [[Terrorist are people that have access
to the the mighty Jihad bomb!]], {}, “terrorist”, 2, 30, 0, false, false)
TEAM_MILITARY = AddExtraTeam(“Military”, Color(102,255,0,255), “models/player/combine_soldier.mdl”, [[You are a member of the army!]],
{“weapon_real_cs_usp”, “weapon_real_cs_ak47”, “item_ammo_pistol”, “item_ammo_rifle”}, “Military”, 4, 65, 0, true, true)
TEAM_TRADER = AddExtraTeam(“Antique tradesman”, Color(153,204,0,255), “odessa.mdl”, [[A trader that sells WW2 allied weapons.]],
{}, “trader”, 2, 50, 0, false, false)
TEAM_SGS = AddExtraTeam(“SUPER GANGSTER SWAT”, Color(255,255,255,255), “models/player/magnusson.mdl”, [[SUPER ADMIN WOOHOO!!!]],
{“weapon_real_cs_admin_weapon”, “weapon_pumpshotgun”, “Is_sniper”, “item_ammo_pistol”, “item_ammo_rifle”, “item_ammo_shotgun”}, “sgs”, 5, 100, 2, false, true)
–[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
DarkRP.createCategory = 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_CHIEF] = true,
[TEAM_MAYOR] = true,

}

–[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_MOB)

use [noparse]




[/noparse] tags

whare

In your post, surround the code with code tags: [noparse]


code here

[/noparse]

I’m pretty sure you’ve set that Category up wrong.
http://wiki.darkrp.com/index.php/DarkRP:Categories

ok i am gone try to make it right i keep you guys updated

He is right, you have inserted a Category here which is a fault, the line is for what job people become when demoted. Not creating categories.

replace it with this

GAMEMODE.DefaultTeam = TEAM_CITIZEN

Please check your console for more information!
[ERROR] A runtime error has occurred in “addons/darkrpmodification/lua/darkrp_customthings/jobs.lua” on line 118.
The best help I can give you is this:

A table is being indexed by something that does not exist (table index is nil).

Hints:
- The thing between square brackets does not exist (is nil).

The responsibility for this error lies with (the authors of) one (or more) of these files:
1. addons/darkrpmodification/lua/darkrp_customthings/jobs.lua on line 118
2. gamemodes/darkrp/gamemode/libraries/fn.lua on line 80
3. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 131
4. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 142
5. gamemodes/darkrp/gamemode/init.lua on line 81
------- End of Simplerr error -------

DarkRP.createCategory{
name = “Citizens”,
categorises = “jobs”,
startExpanded = true,
color = Color(0, 107, 0, 255),
canSee = function(ply) return true end,
sortOrder = 100,
}

TEAM_GUN = DarkRP.createJob(“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 = {},
command = “gundealer”,
max = 2,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
category = “Citizens”,
sortOrder = 100,
})

TEAM_SWAT = DarkRP.createJob(“S.W.A.T.”, {
color = Color(255, 0, 0, 255),
model = {“models/player/swat.mdl”},
description = [[The S.W.A.T. is a Special Weapons And Tactics team they are never alone, the best tactic of them is team They are also highly trained and better trained than the normal cops in the city.]],
weapons = {weapon_clock weapon_mp52, weapon_m4, stunstick, arrest_stick, unarrest_stick, door_ram, weaponchecker},
command = “!setjob SWAT”,
max = 4,
salary = 150,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
– CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = “S.W.A.T”,
})

TEAM_MAYOR = DarkRP.createJob(“Mayor”, {
color = Color(74, 1, 255, 255),
model = {“models/player/breen.mdl”},
description = [[runs the town like no one else did and place the rules and thay must follow them other wise you can go tho the police]],
weapons = {},
command = “!setjob Mayor”,
max = 1,
salary = 200,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
– CustomCheck
medic = false,
chief = false,
mayor = true,
hobo = false,
cook = false,
category = “Mayor”,
})

TEAM_MEDIC = DarkRP.createJob(“Mayor”, {
color = Color(1, 216, 255, 255),
model = {“models/player/Group03m/male_09.mdl”},
description = [[As medic you need to help poeple that are in need off medic stuff]],
weapons = {med_kit},
command = “!setjob Medic”,
max = 4,
salary = 180,
admin = 0,
vote = true,
hasLicense = false,
candemote = true,
– CustomCheck
medic = true,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = “Medic”,
})

[editline]12th August 2015[/editline]

again a lua error

[editline]12th August 2015[/editline]

[ERROR] A runtime error has occurred in “addons/darkrpmodification/lua/darkrp_customthings/jobs.lua” on line 118.
The best help I can give you is this:

A table is being indexed by something that does not exist (table index is nil).

Hints:
- The thing between square brackets does not exist (is nil).

The responsibility for this error lies with (the authors of) one (or more) of these files:
1. addons/darkrpmodification/lua/darkrp_customthings/jobs.lua on line 118
2. gamemodes/darkrp/gamemode/libraries/fn.lua on line 80
3. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 131
4. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 142
5. gamemodes/darkrp/gamemode/init.lua on line 81
------- End of Simplerr 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:
https://github.com/FPtje/DarkRP/blob...jobrelated.lua

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

Add jobs under the following line:
---------------------------------------------------------------------------]]
DarkRP.createCategory {
name = “Citizens”,
categorises = “jobs”,
startExpanded = true,
color = Color(0, 107, 0, 255),
canSee = function(ply) return true end,
sortOrder = 100,
}

TEAM_GUN = DarkRP.createJob(“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 = {},
command = “gundealer”,
max = 2,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
category = “Citizens”,
sortOrder = 100,
})

TEAM_SWAT = DarkRP.createJob(“S.W.A.T.”, {
color = Color(255, 0, 0, 255),
model = {“models/player/swat.mdl”},
description = [[The S.W.A.T. is a Special Weapons And Tactics team they are never alone, the best tactic of them is team They are also highly trained and better trained than the normal cops in the city.]],
weapons = {weapon_clock, weapon_mp52, weapon_m4, stunstick, arrest_stick, unarrest_stick, door_ram, weaponchecker},
command = “!setjob SWAT”,
max = 4,
salary = 150,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
– CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = “S.W.A.T”,
})

TEAM_MAYOR = DarkRP.createJob(“Mayor”, {
color = Color(74, 1, 255, 255),
model = {“models/player/breen.mdl”},
description = [[runs the town like no one else did and place the rules and thay must follow them other wise you can go tho the police]],
weapons = {},
command = “!setjob Mayor”,
max = 1,
salary = 200,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
– CustomCheck
medic = false,
chief = false,
mayor = true,
hobo = false,
cook = false,
category = “Mayor”,
})

TEAM_MEDIC = DarkRP.createJob(“Mayor”, {
color = Color(1, 216, 255, 255),
model = {“models/player/Group03m/male_09.mdl”},
description = [[As medic you need to help poeple that are in need off medic stuff]],
weapons = {med_kit},
command = “!setjob Medic”,
max = 4,
salary = 180,
admin = 0,
vote = true,
hasLicense = false,
candemote = true,
– CustomCheck
medic = true,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = “Medic”,
})

---------------------------------------------------------------------------]]
DarkRP.createCategory = 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_CHIEF] = true,
[TEAM_MAYOR] = true,
}

–[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_MOB)

Holy shit dude, [ lua ] [ /lua ] or [ code ] [ /code ] JESUS

whare do i need to place lua /lua or code / code sorry i am new to a server

[editline]12th August 2015[/editline]

nvm

[editline]12th August 2015[/editline]

/lua Please check your console for more information!
[ERROR] A runtime error has occurred in “addons/darkrpmodification/lua/darkrp_customthings/jobs.lua” on line 118.
The best help I can give you is this:

A table is being indexed by something that does not exist (table index is nil).

Hints:

  • The thing between square brackets does not exist (is nil).

The responsibility for this error lies with (the authors of) one (or more) of these files:

  1. addons/darkrpmodification/lua/darkrp_customthings/jobs.lua on line 118
  2. gamemodes/darkrp/gamemode/libraries/fn.lua on line 80
  3. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 131
  4. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 142
  5. gamemodes/darkrp/gamemode/init.lua on line 81
    ------- End of Simplerr error -------/lua

/code DarkRP.createCategory{
name = “Citizens”,
categorises = “jobs”,
startExpanded = true,
color = Color(0, 107, 0, 255),
canSee = function(ply) return true end,
sortOrder = 100,
}

TEAM_GUN = DarkRP.createJob(“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 = {},
command = “gundealer”,
max = 2,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
category = “Citizens”,
sortOrder = 100,
})

TEAM_SWAT = DarkRP.createJob(“S.W.A.T.”, {
color = Color(255, 0, 0, 255),
model = {“models/player/swat.mdl”},
description = [[The S.W.A.T. is a Special Weapons And Tactics team they are never alone, the best tactic of them is team They are also highly trained and better trained than the normal cops in the city.]],
weapons = {weapon_clock weapon_mp52, weapon_m4, stunstick, arrest_stick, unarrest_stick, door_ram, weaponchecker},
command = “!setjob SWAT”,
max = 4,
salary = 150,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
– CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = “S.W.A.T”,
})

TEAM_MAYOR = DarkRP.createJob(“Mayor”, {
color = Color(74, 1, 255, 255),
model = {“models/player/breen.mdl”},
description = [[runs the town like no one else did and place the rules and thay must follow them other wise you can go tho the police]],
weapons = {},
command = “!setjob Mayor”,
max = 1,
salary = 200,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
– CustomCheck
medic = false,
chief = false,
mayor = true,
hobo = false,
cook = false,
category = “Mayor”,
})

TEAM_MEDIC = DarkRP.createJob(“Mayor”, {
color = Color(1, 216, 255, 255),
model = {“models/player/Group03m/male_09.mdl”},
description = [[As medic you need to help poeple that are in need off medic stuff]],
weapons = {med_kit},
command = “!setjob Medic”,
max = 4,
salary = 180,
admin = 0,
vote = true,
hasLicense = false,
candemote = true,
– CustomCheck
medic = true,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = “Medic”,
})

Edited:

again a lua error

Edited:

[ERROR] A runtime error has occurred in “addons/darkrpmodification/lua/darkrp_customthings/jobs.lua” on line 118.
The best help I can give you is this:

A table is being indexed by something that does not exist (table index is nil).

Hints:

  • The thing between square brackets does not exist (is nil).

The responsibility for this error lies with (the authors of) one (or more) of these files:

  1. addons/darkrpmodification/lua/darkrp_customthings/jobs.lua on line 118
  2. gamemodes/darkrp/gamemode/libraries/fn.lua on line 80
  3. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 131
  4. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 142
  5. gamemodes/darkrp/gamemode/init.lua on line 81
    ------- End of Simplerr 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:
https://github.com/FPtje/DarkRP/blob...jobrelated.lua

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

Add jobs under the following line:
---------------------------------------------------------------------------]]
DarkRP.createCategory {
name = “Citizens”,
categorises = “jobs”,
startExpanded = true,
color = Color(0, 107, 0, 255),
canSee = function(ply) return true end,
sortOrder = 100,
}

TEAM_GUN = DarkRP.createJob(“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 = {},
command = “gundealer”,
max = 2,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
category = “Citizens”,
sortOrder = 100,
})

TEAM_SWAT = DarkRP.createJob(“S.W.A.T.”, {
color = Color(255, 0, 0, 255),
model = {“models/player/swat.mdl”},
description = [[The S.W.A.T. is a Special Weapons And Tactics team they are never alone, the best tactic of them is team They are also highly trained and better trained than the normal cops in the city.]],
weapons = {weapon_clock, weapon_mp52, weapon_m4, stunstick, arrest_stick, unarrest_stick, door_ram, weaponchecker},
command = “!setjob SWAT”,
max = 4,
salary = 150,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
– CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = “S.W.A.T”,
})

TEAM_MAYOR = DarkRP.createJob(“Mayor”, {
color = Color(74, 1, 255, 255),
model = {“models/player/breen.mdl”},
description = [[runs the town like no one else did and place the rules and thay must follow them other wise you can go tho the police]],
weapons = {},
command = “!setjob Mayor”,
max = 1,
salary = 200,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
– CustomCheck
medic = false,
chief = false,
mayor = true,
hobo = false,
cook = false,
category = “Mayor”,
})

TEAM_MEDIC = DarkRP.createJob(“Mayor”, {
color = Color(1, 216, 255, 255),
model = {“models/player/Group03m/male_09.mdl”},
description = [[As medic you need to help poeple that are in need off medic stuff]],
weapons = {med_kit},
command = “!setjob Medic”,
max = 4,
salary = 180,
admin = 0,
vote = true,
hasLicense = false,
candemote = true,
– CustomCheck
medic = true,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = “Medic”,
})

---------------------------------------------------------------------------]]
DarkRP.createCategory = 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_CHIEF] = true,
[TEAM_MAYOR] = true,
}

–[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_MOB) /code

[editline]12th August 2015[/editline]

i dont get it omg just help me fixing it i just want to play


/lua Please check your console for more information!
[ERROR] A runtime error has occurred in "addons/darkrpmodification/lua/darkrp_customthings/jobs.lua" on line 118.
The best help I can give you is this:

A table is being indexed by something that does not exist (table index is nil).

Hints:
- The thing between square brackets does not exist (is nil).

The responsibility for this error lies with (the authors of) one (or more) of these files:
1. addons/darkrpmodification/lua/darkrp_customthings/jobs.lua on line 118
2. gamemodes/darkrp/gamemode/libraries/fn.lua on line 80
3. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 131
4. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 142
5. gamemodes/darkrp/gamemode/init.lua on line 81
------- End of Simplerr error -------/lua








/code DarkRP.createCategory{
name = "Citizens",
categorises = "jobs",
startExpanded = true,
color = Color(0, 107, 0, 255),
canSee = function(ply) return true end,
sortOrder = 100,
}

TEAM_GUN = DarkRP.createJob("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 = {},
command = "gundealer",
max = 2,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
category = "Citizens",
sortOrder = 100,
})

TEAM_SWAT = DarkRP.createJob("S.W.A.T.", {
color = Color(255, 0, 0, 255),
model = {"models/player/swat.mdl"},
description = [[The S.W.A.T. is a Special Weapons And Tactics team they are never alone, the best tactic of them is team They are also highly trained and better trained than the normal cops in the city.]],
weapons = {weapon_clock weapon_mp52, weapon_m4, stunstick, arrest_stick, unarrest_stick, door_ram, weaponchecker},
command = "!setjob SWAT",
max = 4,
salary = 150,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "S.W.A.T",
})

TEAM_MAYOR = DarkRP.createJob("Mayor", {
color = Color(74, 1, 255, 255),
model = {"models/player/breen.mdl"},
description = [[runs the town like no one else did and place the rules and thay must follow them other wise you can go tho the police]],
weapons = {},
command = "!setjob Mayor",
max = 1,
salary = 200,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = true,
hobo = false,
cook = false,
category = "Mayor",
})

TEAM_MEDIC = DarkRP.createJob("Mayor", {
color = Color(1, 216, 255, 255),
model = {"models/player/Group03m/male_09.mdl"},
description = [[As medic you need to help poeple that are in need off medic stuff]],
weapons = {med_kit},
command = "!setjob Medic",
max = 4,
salary = 180,
admin = 0,
vote = true,
hasLicense = false,
candemote = true,
-- CustomCheck
medic = true,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Medic",
})

Edited:

again a lua error

Edited:

[ERROR] A runtime error has occurred in "addons/darkrpmodification/lua/darkrp_customthings/jobs.lua" on line 118.
The best help I can give you is this:

A table is being indexed by something that does not exist (table index is nil).

Hints:
- The thing between square brackets does not exist (is nil).

The responsibility for this error lies with (the authors of) one (or more) of these files:
1. addons/darkrpmodification/lua/darkrp_customthings/jobs.lua on line 118
2. gamemodes/darkrp/gamemode/libraries/fn.lua on line 80
3. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 131
4. gamemodes/darkrp/gamemode/libraries/modificationloader.lua on line 142
5. gamemodes/darkrp/gamemode/init.lua on line 81
------- End of Simplerr 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:
https://github.com/FPtje/DarkRP/blob...jobrelated.lua

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


Add jobs under the following line:
---------------------------------------------------------------------------]]
DarkRP.createCategory {
name = "Citizens",
categorises = "jobs",
startExpanded = true,
color = Color(0, 107, 0, 255),
canSee = function(ply) return true end,
sortOrder = 100,
}

TEAM_GUN = DarkRP.createJob("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 = {},
command = "gundealer",
max = 2,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
category = "Citizens",
sortOrder = 100,
})

TEAM_SWAT = DarkRP.createJob("S.W.A.T.", {
color = Color(255, 0, 0, 255),
model = {"models/player/swat.mdl"},
description = [[The S.W.A.T. is a Special Weapons And Tactics team they are never alone, the best tactic of them is team They are also highly trained and better trained than the normal cops in the city.]],
weapons = {weapon_clock, weapon_mp52, weapon_m4, stunstick, arrest_stick, unarrest_stick, door_ram, weaponchecker},
command = "!setjob SWAT",
max = 4,
salary = 150,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "S.W.A.T",
})

TEAM_MAYOR = DarkRP.createJob("Mayor", {
color = Color(74, 1, 255, 255),
model = {"models/player/breen.mdl"},
description = [[runs the town like no one else did and place the rules and thay must follow them other wise you can go tho the police]],
weapons = {},
command = "!setjob Mayor",
max = 1,
salary = 200,
admin = 0,
vote = true,
hasLicense = true,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = true,
hobo = false,
cook = false,
category = "Mayor",
})

TEAM_MEDIC = DarkRP.createJob("Mayor", {
color = Color(1, 216, 255, 255),
model = {"models/player/Group03m/male_09.mdl"},
description = [[As medic you need to help poeple that are in need off medic stuff]],
weapons = {med_kit},
command = "!setjob Medic",
max = 4,
salary = 180,
admin = 0,
vote = true,
hasLicense = false,
candemote = true,
-- CustomCheck
medic = true,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Medic",
})

---------------------------------------------------------------------------]]
DarkRP.createCategory = 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_CHIEF] = true,
[TEAM_MAYOR] = true,
}

--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_MOB) /code

The fact that you don’t understand how to use a forum code is a bit concerning to be honest. I took ur code and put in between


 (your code here) 

So that it shows normally on the forums ! otherwise people will die from reading it!

You still havn’t replaced

DarkRP.createCategory = TEAM_CITIZEN

With

GAMEMODE.DefaultTeam = TEAM_CITIZEN

And for what reason did you delete the text explaining it ? You really need to follow a tutorial etc m8 it will help you out. I suggest starting from scratch again cause you seem to have multiple errors.

[editline]12th August 2015[/editline]

Also you have set Category for each job to its own name. example Medic job = category = “Medic”,

Yet there are no such thing as the category Medic… You have done this for almost each job, do you understand the word category ???

[editline]12th August 2015[/editline]

The only category you have looking from the code is


/code DarkRP.createCategory{
name = "Citizens",
categorises = "jobs",
startExpanded = true,
color = Color(0, 107, 0, 255),
canSee = function(ply) return true end,
sortOrder = 100,
}

However this code needs to go into the Category.lua file. Not the Job.lua file because job.lua is for jobs not categories.

Since this is the only category you have you need to edit all the jobs Category = “Citizens” and not medic, mayor, etc cause they do not exists

/lua [ERROR] Lua is unable to understand file “darkrp_customthings/jobs.lua” because its author made a mistake around line number 38.
The best help I can give you is this:

Right before the ‘=’, Lua encountered something it could not make sense of.

Hints:
- Did you forget something here? (Perhaps a closing bracket)
- Is it a typo?

------- End of Simplerr error -------/lua

/code TEAM_CITIZEN = DarkRP.createJob(“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 = [[The Citizen is the most basic level of society you can hold besides being a hobo. You have no specific role in darkrp.]],
weapons = {},
command = “citizen”,
max = 0,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false, /code
hasLicense = false,
candemote = false,
category = “Citizens”,

Please check your console for more information!
[ERROR] A runtime error has occurred in “addons/darkrpmodification/lua/darkrp_customthings/jobs.lua” on line 39.
The best help I can give you is this:

A table is being indexed by something that does not exist (table index is nil).

Hints:
- The thing between square brackets does not exist (is nil).

nvm i just started a murderer server

Amazing.