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:
- ---------------------------------------------------------------------------]]
- --[[
- Generated using: DarkRP | Job Generator
- https://csite.io/tools/gmod-darkrp-job
- --]]
- TEAM_M9KDEALER = DarkRP.createJob("M9K Gun Dealer"), {
- color = Color(255, 0, 0, 255),
- model = {"models/player/eli.mdl"},
- description = [[This is a special type of dealer that is an expert with the M9K weapons]],
- weapons = {"m9k_usp"},
- command = "m9kdealer",
- max = 1,
- salary = 375,
- admin = 0,
- vote = false,
- hasLicense = true,
- candemote = false,
- }
- ammo = {
- ["pistol"] = 75
- },
- PlayerSpawn = function(ply)
- ply:SetMaxHealth(100)
- ply:SetHealth(100)
- ply:SetArmor(46)
- end
- })
- --[[
- Generated using: DarkRP | Job Generator
- https://csite.io/tools/gmod-darkrp-job
- --]]
- TEAM_MONEY = DarkRP.createJob("BETA MONEY MAN"), {
- color = Color(0, 255, 52, 255),
- model = {"models/player/gman_high.mdl"},
- description = [[This man is only for beta testers]],
- weapons = {},
- command = "moneyman",
- max = 3,
- salary = 15000,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = false,
- })
- --[[
- Generated using: DarkRP | Job Generator
- https://csite.io/tools/gmod-darkrp-job
- --]]
- TEAM_STAFF = DarkRP.createJob("Staff On Duty"), {
- color = Color(0, 74, 255, 255),
- model = {"models/player/combine_super_soldier.mdl"},
- description = [[Staff Role]],
- weapons = {},
- command = "staffonduty",
- max = 0,
- salary = 0,
- admin = 1,
- vote = false,
- hasLicense = false,
- candemote = false,
- customCheck = function(ply) return
- table.HasValue({"Mod", "superadmin", "Co-Owner", "Admin"}, ply:GetNWString("usergroup"))
- end,
- CustomCheckFailMsg = "This job is for staff only!",
- })
- --[[
- Generated using: DarkRP | Job Generator
- https://csite.io/tools/gmod-darkrp-job
- --]]
- TEAM_POLICE = DarkRP.createJob("Police"), {
- color = Color(0, 74, 255, 255),
- model = {"models/dpfilms/metropolice/playermodels/pm_hl2concept.mdl"},
- description = [[Regular police that roams the streets of downtown]],
- weapons = {"m9k_colt1911", "door_ram", "arrest_stick", "unarrest_stick", "stunstick"},
- command = "police",
- max = 3,
- salary = 60,
- admin = 0,
- vote = false,
- hasLicense = true,
- candemote = true,
- })
- --[[
- Generated using: DarkRP | Job Generator
- https://csite.io/tools/gmod-darkrp-job
- --]]
- TEAM_POLICEMEDIC = DarkRP.createJob("Police Medic"), {
- color = Color(0, 74, 255, 255),
- model = {"models/dpfilms/metropolice/playermodels/pm_civil_medic.mdl"},
- description = [[Regular police that roams the streets of downtown]],
- weapons = {"m9k_colt1911", "door_ram", "arrest_stick", "unarrest_stick", "stunstick", "med_kit"},
- command = "policemed",
- max = 3,
- salary = 65,
- admin = 0,
- vote = false,
- hasLicense = true,
- candemote = true,
- })
- --[[
- Generated using: DarkRP | Job Generator
- https://csite.io/tools/gmod-darkrp-job
- --]]
- TEAM_SWAT = DarkRP.createJob("SWAT"), {
- color = Color(0, 74, 255, 255),
- model = {"models/dpfilms/metropolice/playermodels/pm_rtb_police.mdl"},
- description = [[A professionally trained member of the police force]],
- weapons = {"door_ram", "arrest_stick", "unarrest_stick", "stunstick", "m9k_honeybadger", "m9k_colt1911"},
- command = "swat",
- max = 2,
- salary = 175,
- admin = 0,
- vote = false,
- hasLicense = true,
- candemote = true,
- })
- --[[
- Generated using: DarkRP | Job Generator
- https://csite.io/tools/gmod-darkrp-job
- --]]
- TEAM_POLICECHIEF = DarkRP.createJob("Police Chief"), {
- color = Color(0, 74, 255, 255),
- model = {"models/dpfilms/metropolice/playermodels/pm_hd_barney.mdl"},
- description = [[Leader of both the police force and the SWAT force of downtown]],
- weapons = {"door_ram", "arrest_stick", "unarrest_stick", "stunstick", "m9k_val", "m9k_deagle"},
- command = "policechief",
- max = 1,
- salary = 350,
- admin = 0,
- vote = true,
- hasLicense = true,
- candemote = true,
- category = "Civil Protection",
- chief = true,
- NeedToChangeFrom = TEAM_POLICE,
- ammo = {
- ["pistol"] = 75,
- ["buckshot"] = 75,
- ["smg1"] = 0,
- ["ar2"] = 0
- },
- PlayerSpawn = function(ply)
- ply:SetMaxHealth(175)
- ply:SetHealth(175)
- ply:SetArmor(100)
- end,
- PlayerDeath = function(ply, weapon, killer)
- ply:teamBan()
- ply:changeTeam(GAMEMODE.DefaultTeam, true)
- DarkRP.notifyAll(0, 4, "The police chief has died and needs to be replaced.")
- 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,
- }
- --[[---------------------------------------------------------------------------
- Jobs that are hitmen (enables the hitman menu)
- ---------------------------------------------------------------------------]]
- DarkRP.addHitmanTeam(TEAM_MOB)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement