Hey guys I just made a new category and assigned it to a job and all my jobs still show up in the other category. Code below.
TEAM_COP = DarkRP.createJob("Police Officer", {
color = Color(0, 11, 224),
model = {"models/player/nypd/male_09.mdl"},
description = [[You protect the citizens and work under the Mayor. (Lv.10)]],
weapons = {"arrest_stick", "m9k_m92beretta", "unarrest_stick", "door_ram", "stunstick", "weaponchecker"},
command = "cop",
max = 10,
salary = 30,
admin = 0,
vote = true,
level = 10,
hasLicense = true,
candemote = false,
name = "tests",
})
DarkRP.createCategory{
name = "tests",
categorises = "jobs",
startExpanded = true,
color = Color(0, 43, 255, 255),
canSee = function(ply) return true end,
sortOrder = 24
}
I have tried removing the comma from the end of tests btw.
In your job where you are telling it what category its in, you have name = "tests",
This should be category = "tests"
I know that was a dumb error that I didnt have anymore but didnt notice, the problem still is here,
Are you getting any errors? if so paste them in here
Ok it is working now, im not sure what the deal was cause before I typoed and put name it was category, than I changed the name from government to tests and now it works...
Sorry, you need to Log In to post a reply to this thread.