DarkRP lua error - can't find categories.

Hello. For some reason, my server states it can’t find my categories that I put the jobs in. I have been looking for hours and can’t see anything wrong. I use darkrp modification master. All help is appreciated!

Jobs


--[[---------------------------------------------------------------------------
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/master/gamemode/config/jobrelated.lua

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

Add your custom jobs under the following line:
---------------------------------------------------------------------------]]

TEAM_BORGER = DarkRP.createJob("Borger", {
    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 = [[Du er en normal borger i byen.]],
    weapons = {},
    command = "borger",
    max = 0,
    salary = GAMEMODE.Config.normalsalary,
    admin = 0,
    vote = false,
    hasLicense = false,
    candemote = false,
    category = "Borgere",
})
TEAM_HOBO = DarkRP.createJob("Hjemløs", {
    color = Color(80, 45, 0, 255),
    model = "models/player/corpse1.mdl",
    description = [[Du er det laveste medlem af byen. Tig efter penge!]],
    weapons = {"weapon_bugbait"},
    command = "hjemløs",
    max = 5,
    salary = 0,
    admin = 0,
    vote = false,
    hasLicense = false,
    hobo = true,
    category = "Borgere",
})
TEAM_VAGT = DarkRP.createJob("Vagt", {
    color = Color(0,200,50,255),
    model = "models/player/barney.mdl",
    description = [[Spillere vil betale dig for din beskyttelse. Bliv hyret personligt eller af en butik.]],
    weapons = {"stunstick"},
    command = "vagt",
    max = 1,
    salary = 85,
    admin = 0,
    vote = false,
    hasLicense = true,
    category "Borgere",
})
TEAM_BD = DarkRP.createJob("Borgmesterens Daughter", {
    color = Color(255,100,100,255),
    model = "models/player/alyx.mdl",
    description = [[Du er borgmesterens datter. Gå rundt med din far.]],
    weapons = {},
    command = "datter",
    max = 1,
    salary = 80,
    admin = 0,
    vote = false,
    hasLicense = false,
    category "Borgere",
})
TEAM_BORGMESTER = DarkRP.createJob("Borgmester", {
    color = Color(150, 20, 20, 255),
    model = "models/player/breen.mdl",
    description = [[Du er byens borgmester! Du laver lovene.]],
    weapons = {},
    command = "borgmester",
    max = 1,
    salary = GAMEMODE.Config.normalsalary * 1.89,
    admin = 0,
    vote = true,
    hasLicense = false,
    mayor = true,
    category = "Politi",
})
TEAM_SS = DarkRP.createJob("Agent", {
    color = Color(100, 20, 20, 255),
    model = "models/player/smith.mdl",
    description = [[Du er ansvarlig for borgmesterens sikkerhed.]],
    weapons = {"m9k_m92beretta", "stunstick", "weaponchecker"},
    command = "ss",
    max = 2,
    salary = 65,
    admin = 0,
    vote = true,
    hasLicense = true,
    category "Politi",
})
TEAM_TYV = DarkRP.createJob("Tyv", {
    color = Color(0, 0, 0, 255),
    model = "models/player/arctic.mdl",
    description = [[Du er en tyv. Stjæl fra folk eller bryd ind i deres hjem.]],
    weapons = {"lockpick"}, -- You may wanna find a pickpocket swep and add it here.
    command = "tyv",
    max = 8,
    salary = 65,
    admin = 0,
    vote = false,
    hasLicense = false,
    category "Kriminelle",
})
TEAM_MTHIEF = DarkRP.createJob("Mester Tyv", {
    color = Color(0, 0, 0, 255),
    model = "models/player/phoenix.mdl",
    description = [[Du er en tyv. Stjæl fra folk eller bryd ind i deres hjem.]],
    weapons = {"lockpick", "m9k_tec9", "pickpocket "}, -- You may wanna find a pickpocket swep and add it here.
    command = "mestertyv",
    max = 4,
    salary = 110,
    admin = 0,
    vote = false,
    hasLicense = false,
    category "VIP",
    customCheck = function( ply ) return ply:IsSecondaryUserGroup "VIP" or ply:GetUserGroup() == "VIP" end,
    CustomCheckFailMsg = "Du skal være vip for at blive dette job!",
})
TEAM_HITMAN = DarkRP.createJob("Lejemorder", {
    color = Color(0, 0, 0, 255),
    model = "models/player/leet.mdl",
    description = [[Du får penge for at ryde andre af vejen.]],
    weapons = {"m9k_m24"},
    command = "hitman",
    max = 1,
    salary = 65,
    admin = 0,
    vote = false,
    hasLicense = false,
    category "Kriminelle",
})
TEAM_SWAT = DarkRP.createJob("Swat", {
    color = Color(25, 25, 170, 255),
    model = {"models/player/riot.mdl", "models/player/swat.mdl"},
    description = [[Du beskytter byens borgere.]],
    weapons = {"arrest_stick", "unarrest_stick", "m9k_m92beretta", "stunstick", "door_ram", "weaponchecker", "handcuffs"},
    command = "Swat",
    max = 4,
    salary = 85,
    admin = 0,
    vote = true,
    hasLicense = true,
    category "Politi",
})
TEAM_SWATS = DarkRP.createJob("Swat Sniper", {
    color = Color(20, 20, 255, 255),
    model = {"models/player/riot.mdl", "models/player/swat.mdl"},
    description = [[Du beskytter byens borgere.]],
    weapons = {"arrest_stick", "unarrest_stick", "m9k_m24", "m9k_m92beretta", "stunstick", "door_ram", "weaponchecker", "handcuffs"},
    command = "SwatS",
    max = 1,
    salary = 120,
    admin = 0,
    vote = true,
    hasLicense = true,
    category "Politi",
})
TEAM_SWATL = DarkRP.createJob("Swat Leder", {
    color = Color(20, 20, 255, 255),
    model = {"models/player/urban.mdl"},
    description = [[Du beskytter byens borgere.]],
    weapons = {"arrest_stick", "unarrest_stick", "m9k_m92beretta", "stunstick", "door_ram", "weaponchecker", "handcuffs"},
    command = "SwatL",
    max = 1,
    salary = 150,
    admin = 0,
    vote = true,
    hasLicense = true,
    category "Politi",
})
TEAM_SOD = DarkRP.createJob("Staff on Duty", {
    color = Color(255, 238, 13, 255),
    model = {"models/player/combine_super_soldier.mdl"},
    description = [[Du sørger for spillerne holder reglerne.]],
    weapons = {"arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker", "weapon_keypadchecker"},
    command = "staff",
    max = 0,
    salary = 0,
    admin = 0,
    vote = false,
    hasLicense = false,
    category "Staff",
    customCheck = function(ply) return ply:CheckGroup("provemod") end,
    CustomCheckFailMsg = "Du skal være staff for at blive dette job!",
})



--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_BORGER
--[[---------------------------------------------------------------------------
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] = true,
    [TEAM_CHIEF] = true,
    [TEAM_MAYOR] = true,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_HITMAN)

Categories


--[[-----------------------------------------------------------------------
Categories
---------------------------------------------------------------------------
The categories of the default F4 menu.

Please read this page for more information:
http://wiki.darkrp.com/index.php/DarkRP:Categories

In case that page can't be reached, here's an example with explanation:

DarkRP.createCategory{
    name = "Citizens", -- The name of the category.
    categorises = "jobs", -- What it categorises. MUST be one of "jobs", "entities", "shipments", "weapons", "vehicles", "ammo".
    startExpanded = true, -- Whether the category is expanded when you open the F4 menu.
    color = Color(0, 107, 0, 255), -- The color of the category header.
    canSee = function(ply) return true end, -- OPTIONAL: whether the player can see this category AND EVERYTHING IN IT.
    sortOrder = 100, -- OPTIONAL: With this you can decide where your category is. Low numbers to put it on top, high numbers to put it on the bottom. It's 100 by default.
}


Add new categories under the next line!
---------------------------------------------------------------------------]]

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

DarkRP.createCategory{
	name = "Kriminelle",
	categorises = "jobs",
	startExpanded = true,
	color = Color(255, 255, 255, 255),
	canSee = function(ply) return true end,
	sortOrder = 110,
}

DarkRP.createCategory{
	name = "Politi",
	categorises = "jobs",
	startExpanded = true,
	color = Color(255, 255, 255, 255),
	canSee = function(ply) return true end,
	sortOrder = 120,
}

DarkRP.createCategory{
	name = "VIP",
	categorises = "jobs",
	startExpanded = true,
	color = Color(255, 255, 255, 255),
	canSee = function(ply) return true end,
	sortOrder = 130,
}

DarkRP.createCategory{
	name = "Staff",
	categorises = "jobs",
	startExpanded = true,
	color = Color(255, 255, 255, 255),
	canSee = function(ply) return true end,
	sortOrder = 140,
}