• DarkRP Jobs Not Appearing!
    11 replies, posted
Hello! I have just started a SCP-RP server with a bunch of people, and jobs have not been working since day one. To put it quickly, they are simply not appearing in the F4 menu, fortunetly I have a LUA error and will also give the jobs.lua and catagories.lua. [code] There is 1 Lua problem! Please check your console for more information! [ERROR] A runtime error has occurred in "your jobs" on line -1. The best help I can give you is this: The category of "D-Class" ("jobs") 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 the error above lies with (the authors of) one (or more) of these files: your jobs ------- End of Simplerr error ------- [/code] Underneath, here is first, my jobs.lua and then my Catagories.lua, [code] TEAM_DCLASS = DarkRP.createJob("D-Class", { color = Color(196, 117, 0, 255), model = {"models/player/kerry/class_d_2.mdl"}, description = [[]], weapons = {weapon_empty_hands}, command = "dclass", max = 0, salary = 0, admin = 0, vote = false, hasLicense = false, candemote = false, -- CustomCheck medic = false, chief = false, mayor = false, hobo = false, cook = false, category = "jobs", }) [/code] [code] DarkRP.createCategory{ name = "d-class", categorises = "jobs", startExpanded = true, color = Color(204, 146, 0, 255), canSee = function(ply) return true end, sortOrder = 1, } [/code] If you can help it would be greatly appreciated!
Bump
Set the category to d-class. It is already in jobs.lua. Also, put the weapon class in quotes. And don't bump after only two hours.
[QUOTE=SirFrancisB;51052922]Set the category to d-class. It is already in jobs.lua. Also, put the weapon class in quotes. And don't bump after only two hours.[/QUOTE] What do you mean by set the category to d-class?
[QUOTE=Clunky;51052953]What do you mean by set the category to d-class?[/QUOTE] [CODE]category = "jobs",[/CODE] to [CODE]category = "d-class",[/CODE]
The error clearly states that the category "jobs" does not exist. Meaning, you need to create that category. Why can't you read through the error and break it down in your own head? :D Edit: You're also setting the category to "jobs" instead of "d-class"...
[QUOTE=Tupac;51053290]The error clearly states that the category "jobs" does not exist. Meaning, you need to create that category. Why can't you read through the error and break it down in your own head? :D Edit: You're also setting the category to "jobs" instead of "d-class"...[/QUOTE] First time making jobs. Anyways this worked. Thank you guys for your help. [editline]14th September 2016[/editline] Nevermind, It seems the catagory is popping up but the job still isn't there. Here is the new code for jobs.lua: [code] TEAM_DCLASS = DarkRP.createJob("D-Class", { color = Color(196, 117, 0, 255), model = {"models/player/kerry/class_d_2.mdl"}, description = [[You are stuck here, with no clue why, or how you got here.]], weapons = {"weapon_empty_hands"}, command = "dclass", max = 0, salary = 300, admin = 0, vote = false, hasLicense = false, candemote = false, -- CustomCheck medic = false, chief = false, mayor = false, hobo = false, cook = false, category = "d-class", }) [/code]
last bump! Someone please help!
[QUOTE=Clunky;51053534]First time making jobs. Anyways this worked. Thank you guys for your help. [editline]14th September 2016[/editline] Nevermind, It seems the catagory is popping up but the job still isn't there. Here is the new code for jobs.lua: [code] TEAM_DCLASS = DarkRP.createJob("D-Class", { color = Color(196, 117, 0, 255), model = {"models/player/kerry/class_d_2.mdl"}, description = [[You are stuck here, with no clue why, or how you got here.]], weapons = {"weapon_empty_hands"}, command = "dclass", max = 0, salary = 300, admin = 0, vote = false, hasLicense = false, candemote = false, -- CustomCheck medic = false, chief = false, mayor = false, hobo = false, cook = false, category = "d-class", }) [/code][/QUOTE] do you have a catorgory set to it? [editline]15th September 2016[/editline] [QUOTE=Moat;51055000][code] max = 0, [/code] This number sets the maximum of players allowed to use the job at the same time. You currently have it set to 0.[/QUOTE] 0 means infinity smartass
[QUOTE=Jason138;51055040]do you have a catorgory set to it? [editline]15th September 2016[/editline] 0 means infinity smartass[/QUOTE] I'll check when I get home from my classes.
Alright, I got back and I do have a category set to it.
Sorry, you need to Log In to post a reply to this thread.