• Custom jobs on darkrp not appearing.
    4 replies, posted
my darkrp server does not display these jobs in the f4 menu. what did i do wrong? thanks! --[[--------------------------------------------------------------------------- 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: [url]https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua[/url] For examples and explanation please visit this wiki page: [url]http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields[/url] Add jobs under the following line: ---------------------------------------------------------------------------]] -- Code generated at: TheCodingBeast.com | DarkRP 2.5 Tools TEAM_BMD = DarkRP.createJob("Black market dealer", { color = Color(0, 0, 0, 255), model = {models/player/eli.mdl}, description = [[Sells illegal and more powerful guns.]], weapons = {}, command = "BMD", max = 2, salary = 300, admin = 0, vote = true, hasLicense = false, candemote = true, -- CustomCheck medic = false, chief = false, mayor = false, hobo = false, cook = false, category = "Shop owners", }) -- Code generated at: TheCodingBeast.com | DarkRP 2.5 Tools TEAM_GUN = DarkRP.createJob("Gun dealer", { color = Color(35, 255, 0, 255), model = {models/player/monk.mdl}, description = [[sells gun to people.]], weapons = {}, command = "GUN", max = 3, salary = 300, admin = 0, vote = true, hasLicense = true, candemote = true, -- CustomCheck medic = false, chief = false, mayor = false, hobo = false, cook = false, category = "Shop owners", }) -- Code generated at: TheCodingBeast.com | DarkRP 2.5 Tools TEAM_THIEF = DarkRP.createJob("Thief", { color = Color(219, 255, 0, 255), model = {models/player/phoenix.mdl}, description = [[Steals stuff from peoples shops and houses]], weapons = {lockpick}, command = "thief", max = 3, salary = 50, admin = 0, vote = true, hasLicense = false, candemote = true, -- CustomCheck medic = false, chief = false, mayor = false, hobo = false, cook = false, category = "criminals", }) -- Code generated at: TheCodingBeast.com | DarkRP 2.5 Tools TEAM_HITMAN = DarkRP.createJob("Hitman", { color = Color(255, 0, 0, 255), model = {models/player/leet.mdl}, description = [[kills people for money]], weapons = {}, command = "HIT", max = 1, salary = 50, admin = 0, vote = true, hasLicense = true, candemote = true, -- CustomCheck medic = false, chief = false, mayor = false, hobo = false, cook = false, category = "criminals", }) --[[--------------------------------------------------------------------------- Define which team joining players spawn into and what team you change to if demoted ---------------------------------------------------------------------------]] GAMEMODE.DefaultTeam = 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_POLICE] = true, [TEAM_CHIEF] = true, [TEAM_MAYOR] = true, } --[[--------------------------------------------------------------------------- Jobs that are hitmen (enables the hitman menu) ---------------------------------------------------------------------------]] DarkRP.addHitmanTeam(TEAM_HITMAN)
model = {models/player/eli.mdl}, You're missing quotes around the model name in both jobs.
My goodness...Are you not getting script errors??
Use this layout for your job code. Coding beast is a joke. [CODE]TEAM_BMD = DarkRP.createJob("Black Market Dealer", { color = Color(0, 0, 0, 255), model = {"models/player/eli.mdl"}, description = [[Sells illegal and more powerful guns.]], weapons = {}, command = "BMD", max = 2, salary = 300, admin = 0, vote = true, hasLicense = false, })[/CODE] [editline]12th June 2015[/editline] If you need more help with jobs or anything DarkRP related (I own my own server) just PM me on Facepunch.
[QUOTE=code_gs;47939378]model = {models/player/eli.mdl}, You're missing quotes around the model name in both jobs.[/QUOTE] Thanks. that fixed it!
Sorry, you need to Log In to post a reply to this thread.