Base Configuration
The ID used to identify the job in the code.
The name shown on the F4 menu, Scoreboard, HUD and such.
The model shown on the F4 menu and used when changed.
(DarkRP 2.6+) The category the job should show up in. You must create the category.
Job Configuration
Permission Configuration
The admin status required for the job. CustomChecks may work better in some situations and got more options.
Whether or not a vote should be required to become the job.
Whether or not the job should spawn with a gun license.
Whether or not the job can be demoted by other players.
Economy Configuration
The salary the player receive.
The amount of players that can have the job at the same time. Unlimited: 0.
Type Configuration (Mayor, Medic etc.)
Gives access to lockdown, lottery, broadcast and more.
Gives access to nothing. External addons may use this.
Gives access to food and the microwave.
Gives access to nothing. External addons may use this.
Spawn Configuration (Health, Armor, Bodygroups and Ammo)
The amount of health the job should spawn with. This may not be compatible with all addons such as HUDs.
The amount of armor the job should spawn with.
The position of the group in the C right click menu (Start at 0). Must match with the value below.
The position of the bodygroup value in the C right click menu (Start at 0). Must match with the group above.
The ammo types the job should spawn with. Must match with the numbers below.
The amount of ammo the job should spawn with. Must match with the names above.
CustomCheck Configuration (Restrict access)
The visibility of item in the F4 menu.
The message shown if the player can't pass the customCheck.
The restriction method you want to use.
The teams the item should be restricted to.
The admin system you are running on your server.
The groups the item should be restricted to.
The SteamIDs the item should be restricted to.
Other Configuration (Demote on Death)
Whether or not the player should be demoted on death.
The message it should display when the player is demoted.



Generated Code Here

= DarkRP.createJob("", {
  • color = ,
  • model = {
    },
  • description = [[]],
  • weapons = {},
  • command = "",
  • max = ,
  • salary = ,
  • admin = ,
  • vote = ,
  • hasLicense = ,
  • candemote = ,
  • ammo = {
    },
  • PlayerSpawn = function(ply)
    end,
  • PlayerDeath = function(ply, weapon, killer)
    • ply:teamBan()
    • ply:changeTeam(GAMEMODE.DefaultTeam, true)
    • DarkRP.notifyAll(0, 4,"")
    end,
  • customCheck = function(ply) return
    • table.HasValue({}, ply:Team())
    • table.HasValue({}, ply:SteamID())
    end,
    CustomCheckFailMsg = "",
})