So I was up all night trying to add in printers and more jobs, well, I had made the thief and admin on duty job, and they worked fine. Now with the rest of the jobs, it wont load any custom job that I added please help ;(
/*---------------------------------------------------------------------------
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/ma ... elated.lua
For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
Add jobs under the following line:
---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------
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,
[TEAM_SWAT] = true,
[TEAM_FBI] = true,
/*---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------*/
DarkRP.addHitmanTeam()
TEAM_Admin = DarkRP.createJob('Admin On Duty', {
color = Color(177, 203, 90, 255),
model = 'models/player/combine_super_soldier.mdl',
description = [[This job is for staff only. You must be Staff On Duty at least twice a week.]],
weapons = {},
command = 'Admin',
max = 10,
salary = 500,
admin = 1,
vote = false,
hasLicense = true,
})
TEAM_Thief = DarkRP.createJob('Thief', {
color = Color(0, 0, 0, 255),
model = 'models/player/phoenix.mdl',
description = [[As thief you may Raid, mug, kidnap, and steal. You must advert each action before you do them.]],
weapons = {'lockpick'},
command = 'thief',
max = 5,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_FBI = DarkRP.createJob('FBI Agent', {
color = Color(86, 22, 77, 255),
model = 'fbi_01.mdl','fbi_02.mdl','fbi_03.mdl','fbi_04.mdl'.'fbi_05.mdl','fbi_06.mdl','fbi_07.mdl','fbi_08.mdl','fbi_09.mdl',
description = [[Your job as a member of the FBI is to help the SWAT raid and find illegal entities. NO CORRUPT RAIDS!]],
weapons = {'m9k_famas','bb_deagle_alt','bb_cssfrag_alt','bb_css_knife_alt','bb_css_smoke_alt'},
command = 'FBI',
max = 3,
salary = 92,
admin = 0,
vote = false,
hasLicense = true,
NeedToChangeFrom = TEAM_POLICE,
customcheck = function(ply) return ply :GetNWStrin("usergroup") == "VIP" end
})
TEAM_SWAT = DarkRP.createJob('Terrorist', {
color = Color(0, 0, 255, 255),
model = 'alqaeda_commando.mdl','taliban_bomber.mdl','taliban_grunt.mdl','taliban_rpg.mdl',
description = [[Your job is to cause Havoc upon the people of Mastadon Gaming. You must do /advert Terror, you can only advert terror once every 5 minutes]],
weapons = {'m9k_suicide_bomb', 'm9k_ied_detonator','},
command = 'citizen',
max = 3,
salary = 20,
admin = 0,
vote = false,
hasLicense = false,
})
TEAM_Spidey = DarkRP.createJob('Spiderman', {
color = Color(255, 0, 0, 255),
model = 'spidermanmarvelvc.mdl',
description = [[As spiderman you are an extremely overpowered vigilante, fight crime!]],
weapons = {'spiderman's_swep','m9k_fists','m9k_damascus'},
command = 'Spidey',
max = 1,
salary = 125,
admin = 0,
vote = false,
hasLicense = false,
customcheck = function(ply) return ply :GetNWStrin("usergroup") == "VIP" end
})
Please help, My custom jobs aren't working...
-
- New to forums
- Posts: 1
- https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
- Joined: Wed Jun 25, 2014 1:21 am
Re: Please help, My custom jobs aren't working...
im not sure if this is the problem but try using " instead of '
for example
TEAM_Admin = DarkRP.createJob("Admin On Duty", {
color = Color(177, 203, 90, 255),
model = 'models/player/combine_super_soldier.mdl',
description = [[This job is for staff only. You must be Staff On Duty at least twice a week.]],
weapons = {},
command = "Admin",
max = 10,
salary = 500,
admin = 1,
vote = false,
hasLicense = true,
})
also you need to close the table
GAMEMODE.CivilProtection = {
[TEAM_POLICE] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
[TEAM_SWAT] = true,
[TEAM_FBI] = true,
}
and new jobs need to go under this line
Add jobs under the following line:
---------------------------------------------------------------------------*/
not at the end
red color is just to make it stand out, dont worry about it
for example
TEAM_Admin = DarkRP.createJob("Admin On Duty", {
color = Color(177, 203, 90, 255),
model = 'models/player/combine_super_soldier.mdl',
description = [[This job is for staff only. You must be Staff On Duty at least twice a week.]],
weapons = {},
command = "Admin",
max = 10,
salary = 500,
admin = 1,
vote = false,
hasLicense = true,
})
also you need to close the table
GAMEMODE.CivilProtection = {
[TEAM_POLICE] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
[TEAM_SWAT] = true,
[TEAM_FBI] = true,
}
and new jobs need to go under this line
Add jobs under the following line:
---------------------------------------------------------------------------*/
not at the end
red color is just to make it stand out, dont worry about it

Re: Please help, My custom jobs aren't working...
A few errors to correct:
[ NOTE: YOU HAVE TO REPLACE THE FBI + TERRORIST PLAYERMODELS, I PUT A SINGLE MODEL, IF YOU WANT TO ADD MORE THAN 1 SEPARATE THEM WITH A , AND ADD A TABLE LIKE: model = {"models/player/phoenix.mdl", "models/player/phoenix.mdl", "models/player/phoenix.mdl" }, ]
[ NOTE: YOU HAVE TO REPLACE THE FBI + TERRORIST PLAYERMODELS, I PUT A SINGLE MODEL, IF YOU WANT TO ADD MORE THAN 1 SEPARATE THEM WITH A , AND ADD A TABLE LIKE: model = {"models/player/phoenix.mdl", "models/player/phoenix.mdl", "models/player/phoenix.mdl" }, ]
Code: Select all
/*---------------------------------------------------------------------------
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/ma ... elated.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_Admin = DarkRP.createJob("Admin On Duty", {
color = Color(177, 203, 90, 255),
model = "models/player/combine_super_soldier.mdl",
description = [[This job is for staff only. You must be Staff On Duty at least twice a week.]],
weapons = {},
command = "admin",
max = 10,
salary = 500,
admin = 1,
vote = false,
hasLicense = true
})
TEAM_Thief = DarkRP.createJob("Thief", {
color = Color(0, 0, 0, 255),
model = "models/player/phoenix.mdl",
description = [[As thief you may Raid, mug, kidnap, and steal. You must advert each action before you do them.]],
weapons = {"lockpick"},
command = "thief",
max = 5,
salary = 45,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_FBI = DarkRP.createJob("FBI Agent", {
color = Color(86, 22, 77, 255),
model = "models/player/phoenix.mdl",
description = [[Your job as a member of the FBI is to help the SWAT raid and find illegal entities. NO CORRUPT RAIDS!]],
weapons = {"m9k_famas","bb_deagle_alt","bb_cssfrag_alt","bb_css_knife_alt","bb_css_smoke_alt"},
command = "fbi",
max = 3,
salary = 92,
admin = 0,
vote = false,
hasLicense = true,
NeedToChangeFrom = TEAM_POLICE,
customcheck = function(ply) return ply:GetNWStrin("usergroup") == "VIP" end
})
TEAM_SWAT = DarkRP.createJob("Terrorist", {
color = Color(0, 0, 255, 255),
model = "models/player/phoenix.mdl",
description = [[Your job is to cause Havoc upon the people of Mastadon Gaming. You must do /advert Terror, you can only advert terror once every 5 minutes]],
weapons = {"m9k_suicide_bomb", "m9k_ied_detonator"},
command = "swat",
max = 3,
salary = 20,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_Spidey = DarkRP.createJob("Spiderman", {
color = Color(255, 0, 0, 255),
model = "spidermanmarvelvc.mdl",
description = [[As spiderman you are an extremely overpowered vigilante, fight crime!]],
weapons = {"spiderman's_swep","m9k_fists","m9k_damascus"},
command = "spiderman",
max = 1,
salary = 125,
admin = 0,
vote = false,
hasLicense = false,
customcheck = function(ply) return ply:GetNWStrin("usergroup") == "VIP" end
})
/*---------------------------------------------------------------------------
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,
[TEAM_SWAT] = true,
[TEAM_FBI] = true
}
/*---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------*/