Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[---------------------------------------------------------------------------
- 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/master/gamemode/config/jobrelated.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_COP = DarkRP.createJob("Police Officer", {
- color = Color(0, 71, 255, 255),
- model = {"models/player/uk_police/uk_police_09.mdl"},
- description = [[A member of the police force, you protect and serve]],
- weapons = {weapon_357},
- command = "cop",
- max = 5,
- salary = 100,
- admin = 0,
- vote = false,
- hasLicense = true,
- candemote = false,
- -- CustomCheck
- medic = false,
- chief = false,
- mayor = false,
- hobo = false,
- cook = false,
- })
- TEAM_SEARGENT = DarkRP.createJob("Police Seargent", {
- color = Color(0, 132, 255, 255),
- model = {"models/player/uk_police/uk_police_02.mdl"},
- description = [[The head of the police force]],
- weapons = {bb_glock_alt},
- command = "searg",
- max = 1,
- salary = 150,
- admin = 0,
- vote = false,
- hasLicense = true,
- candemote = false,
- -- CustomCheck
- medic = false,
- chief = true,
- mayor = false,
- hobo = false,
- cook = false,
- })
- TEAM_REBEL = DarkRP.createJob("Rebel", {
- color = Color(124, 124, 124, 255),
- model = {"models/player/Group03/male_04.mdl"},
- description = [[A criminal]],
- weapons = {},
- command = "rebel",
- max = 4,
- salary = 5,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = false,
- -- CustomCheck
- medic = false,
- chief = false,
- mayor = false,
- hobo = false,
- cook = false,
- })
- TEAM_HITMAN = DarkRP.createJob("Hitman", {
- color = Color(255, 214, 0, 255),
- model = {"models/player/guerilla.mdl"},
- description = [[You are paid to kill.]],
- weapons = {},
- command = "hitman",
- max = 1,
- salary = 20,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = false,
- -- CustomCheck
- medic = false,
- chief = false,
- mayor = false,
- hobo = false,
- cook = false,
- })
- TEAM_BMD = DarkRP.createJob("Black Market Dealer", {
- color = Color(127, 0, 255, 255),
- model = {"models/player/phoenix.mdl"},
- description = [[You sell illegal goods to the public]],
- weapons = {},
- command = "bmd",
- max = 2,
- salary = 50,
- admin = 0,
- vote = true,
- hasLicense = false,
- candemote = true,
- -- CustomCheck
- medic = false,
- chief = false,
- mayor = false,
- hobo = false,
- cook = false,
- })
- TEAM_SWAT = DarkRP.createJob("SWAT", {
- color = Color(178, 0, 0, 255),
- model = {"models/player/swat.mdl"},
- description = [[You are heavy forces used when the police are not enough]],
- weapons = {bb_m4a1_alt},
- command = "swat",
- max = 3,
- salary = 150,
- admin = 0,
- vote = true,
- hasLicense = true,
- candemote = true,
- -- CustomCheck
- medic = false,
- chief = false,
- mayor = false,
- hobo = false,
- cook = false,
- customCheck = function(ply) return ply:GetNWString("vip") == "donator" 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_COP] = true,
- [TEAM_SEARGENT] = true,
- [TEAM_MAYOR] = true,
- }
- --[[---------------------------------------------------------------------------
- Jobs that are hitmen (enables the hitman menu)
- ---------------------------------------------------------------------------]]
- DarkRP.addHitmanTeam(TEAM_HITMAN)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement