I am starting up a StarWarsRP server and am currently working on the jobs, I have all the categories in the categories.lua but all the jobs show up in the 'Other' category. There is no lua errors in console too.
Catagories.lua
[CODE]--[[-----------------------------------------------------------------------
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 = "Republic Basic", -- 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 = 1, -- 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 = "Republic Basic",
categories = "jobs",
startExpanded = true,
color = Color(20,200,255),
canSee = function(ply) return true end,
sortorder = 1,
}
DarkRP.createCategory{
name = "Shadow Company",
categories = "jobs",
color = Color(20,200,255),
sortorder = 2,
}
DarkRP.createCategory{
name = "Green Company",
categories = "jobs",
color = Color(20, 200, 255),
sortorder = 3,
}
DarkRP.createCategory{
name = "Flight Squad Seven",
categories = "jobs",
color = Color(20, 200, 255),
sortOrder = 4,
}
DarkRP.createCategory{
name = "Explosive Ordnance Disposal",
categories = "jobs",
color = Color(20, 200, 255),
sortOrder = 5,
}
DarkRP.createCategory{
name = "Doom's Squad",
categories = "jobs",
color = Color(20, 200, 255),
sortOrder = 6,
}
DarkRP,createCategory{
name = "Coruscant Guard",
categories = "jobs",
color = Color(20, 200, 255),
sortorder = 7,
}
DarkRP.createCategory{
name = "Advanced Recon Commandos",
categories = "jobs",
color = Color(20, 200, 255),
sortorder = 7,
}
DarkRP.createCategory{
name = "5th Fleet Security",
categories = "jobs",
color = Color(20, 200 ,255),
sortOrder = 8,
}
DarkRP.createCategory{
name = "501st Legion",
categories = "jobs",
color = Color(20, 200, 255),
sortOrder = 9,
}
DarkRP,createCategory{
name = "4th Medical Battalion",
categories = "jobs",
color = Color(20, 200, 255),
sortOrder = 10,
}
DarkRP.createCategory{
name = "38th Armoured Division",
categories = "jobs",
color = Color(20, 200, 255),
sortOrder = 11,
}
DarkRP.createCategory{
name = "327th Star Corps",
categories = "jobs",
color = Color(20, 200, 255),
sortOrder = 12,
}
DarkRP.createCategory{
name = "2nd Airborne Company",
categories = "jobs",
color = Color(20, 200, 255),
sortOrder = 13,
}
DarkRP.createCategory{
name = "21st Nova Corps",
categories = "jobs",
color = Color(20, 200, 255),
sortOrder = 14,
}
DarkRP.createCategory{
name = "212th Attack Battalion",
categories = "jobs",
color = Color(20, 200, 255),
sortOrder = 15,
}
DarkRP.createCategory{
name = "187th Legion",
categories = "jobs",
color = Color(20, 200,255),
sortOrder = 16,
}
DarkRP.createCategory{
name = "104th Battalion",
categories = "jobs",
color = Color(20, 200, 255),
sortOrder = 17,
}
DarkRP.createCategory{
name = "Republic Navy",
categories = "jobs",
color = Color(20, 200, 255),
sortOrder = 18,
}
DarkRP.createCategory{
name = "Jedi",
categories = "jobs",
color = Color(20, 200, 255),
sortOrder = 19,
}
DarkRP.createCategory{
name = "Misc",
categories = "jobs",
color = Color(20, 200, 255),
sortOrder = 20,
}
DarkRP.createCategory{
name = "Staff",
categories = "jobs",
color = Color(20, 200, 255),
sortOrder = 21,
}
[/CODE]
Jobs.lua
[CODE]--[[---------------------------------------------------------------------------
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 jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_CLONERECRUIT = DarkRP.createJob("Clone Recruit", {
color = Color(20, 200, 255),
model = {"models/player/sgg/starwars/republiccommando/cloneadult.mdl"},
description = [[]],
weapons = {"weapon_752_dc15strainingnodmg"},
command = "recruit",
max = 0,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
categeories = "Republic Basic",
})
TEAM_CLONETROOP = DarkRP.createJob("Clone Trooper", {
color = Color(20, 200, 255),
model = {"models/player/sgg/starwars/clonetrooper_dirty.mdl"},
description = [[]],
weapons = {"weapon_752_dc15strainingnodmg"},
command = "ct",
max = 0,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
categeories = "Republic Basic",
})
TEAM_CLONEASLTTROOP = DarkRP.createJob("Clone Assault Trooper", {
color = Color(20, 200, 255),
model = {"models/player/q/starwars/ctaslt.mdl"},
description = [[]],
weapons = {"weapon_752_dc15strainingnodmg"},
command = "cat",
max = 0,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
categeories = "Republic Basic",
})
TEAM_CLONEXO = DarkRP.createJob("Clone Trooper XO", {
color = Color(20, 200, 255),
model = {"models/player/q/starwars/ctlt.mdl"},
description = [[You are the basic unit of civilization.]],
weapons = {"weapon_752_dc15strainingnodmg"},
command = "ctxo",
max = 0,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
categeories = "Republic Basic",
})
TEAM_CLONECOMNDR = DarkRP.createJob("Clone Trooper Commander", {
color = Color(20, 200, 255),
model = {"models/player/q/starwars/ctcpt.mdl"},
description = [[]],
weapons = {"weapon_752_dc15strainingnodmg"},
command = "ctcommand",
max = 0,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
categeories = "Republic Basic",
})
TEAM_SHADOWTROOP = DarkRP.createJob("Shadow Company Trooper", {
color = Color(20, 200, 255),
model = {"models/player/qew/starwars/combat.mdl"},
description = [[]],
weapons = {"weapon_752_dc15strainingnodmg"},
command = "sct",
max = 0,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
categeories = "Shadow Company",
})
TEAM_SHADOWELITETROOP = DarkRP.createJob("Shadow Company Elite Trooper", {
color = Color(20, 200, 255),
model = {"models/player/qew/starwars/elite.mdl"},
description = [[You are the basic unit of civilization.]],
weapons = {"weapon_752_dc15strainingnodmg"},
command = "scet",
max = 0,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
categeories = "Shadow Company",
})
TEAM_SHADOWSHARPSHOOT = DarkRP.createJob("Shadow Company Sharpshoote
The key for the job tables is "category" not "categories"
Sorry, you need to Log In to post a reply to this thread.