DarkRP 2.7.0 Custom Job Error

Post Reply
Reaver
New to forums
New to forums
Posts: 2
Joined: Fri May 26, 2017 5:11 pm

DarkRP 2.7.0 Custom Job Error

Post by Reaver » Fri May 26, 2017 5:17 pm

Hello, currently I'm having a problem with being able to create custom jobs through DarkRP by an addon called "darkrpmodification." Fptje Atheos on the DarkRP forums said specifically NOT to touch the core files and to download the "darkrpmodification" addon and install it into your addons. That much is understood, however, I downloaded said addon and added a job through the jobs.lua file through this specific code:

Code: Select all

TEAM_THIEF = DarkRP.createJob("Thief", {
    color = Color(0, 0, 0, 255),
    model = "models/player/arctic.mdl",
    description = [[You are a thief, rob people, break into houses and steal printers]],
    weapons = {"lockpick"}, 
    command = "thief",
    max = 2,
    salary = 65,
    admin = 0,
    vote = false,
    hasLicense = false,
})
I know for a fact that this is the correct code for DarkRP and creating jobs, I code lua myself, so that much is understood. My thought lies that this may be an error somewhere else, but I'm not positive where.

TLDR; The error lies that the Thief job, shown above, shows up in my F4 menu job section, however, I cannot become the job and I stay a citizen even though I clicked on the thief job. It's as if nothing is happening. Where is the error?

Reaver
New to forums
New to forums
Posts: 2
Joined: Fri May 26, 2017 5:11 pm

Re: DarkRP 2.7.0 Custom Job Error

Post by Reaver » Fri May 26, 2017 6:07 pm

I apologize, I've solved this error now.

Post Reply