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_THIEF = DarkRP.createJob("Thief", {
- color = Color(207, 207, 196, 255),
- model = {"models/player/arctic.mdl"},
- description = [[You are a thief.
- Raid = Yes
- Carjack = Yes
- Allowed Guns = All
- PdRaid = Yes
- Mug = No
- Kidnap = Yes
- ]],
- weapons = {"lockpick", "keypad_cracker"},
- command = "thief",
- max = 5,
- salary = 65,
- admin = 0,
- vote = false,
- hasLicense = false,
- })
- TEAM_HITMAN = DarkRP.createJob("Hitman", {
- color = Color(128, 128, 128, 255),
- model = {"models/player/leet.mdl"},
- description = [[An assassin, hired to kill.
- Raid = Yes (only if hit is in building)
- Carjack = No
- Allowed Guns = All
- PdRaid = No
- Mug = No
- Kidnap = No
- ]],
- weapons = {"bb_css_knife_alt"},
- command = "hitman",
- max = 2,
- salary = 50,
- admin = 0,
- vote = false,
- hasLicense = false,
- })
- TEAM_POLICE = DarkRP.createJob("Civil Protection", {
- color = Color(25, 25, 170, 255),
- model = {"models/player/police.mdl", "models/player/police_fem.mdl"},
- description = [[Protector of the city
- Raid = No
- Carjack = No
- Allowed Guns = All
- PdRaid = No
- Mug = No
- Kidnap = No
- ]],
- weapons = {"arrest_stick", "unarrest_stick", "m9k_m92beretta", "stunstick", "door_ram", "weaponchecker"},
- command = "cp",
- max = 4,
- salary = GAMEMODE.Config.normalsalary * 1.45,
- admin = 0,
- vote = true,
- hasLicense = true,
- ammo = {
- ["pistol"] = 100,
- }
- })
- TEAM_CHIEF = DarkRP.createJob("Civil Protection Chief", {
- color = Color(20, 20, 255, 255),
- model = "models/player/combine_soldier_prisonguard.mdl",
- description = [[Head of Civil Protection
- Raid = No
- Carjack = No
- Allowed Guns = All
- PdRaid = No
- Mug = No
- Kidnap = No
- ]],
- weapons = {"arrest_stick", "unarrest_stick", "m9k_deagle", "m9k_m4a1", "stunstick", "door_ram", "weaponchecker"},
- command = "chief",
- max = 1,
- salary = GAMEMODE.Config.normalsalary * 1.67,
- admin = 0,
- vote = false,
- hasLicense = true,
- chief = true,
- NeedToChangeFrom = TEAM_POLICE,
- ammo = {
- ["pistol"] = 60,
- }
- })
- TEAM_ADMIN = DarkRP.createJob("Admin on Duty", {
- color = Color(255, 0, 0, 255),
- model = {"models/avengers/iron man/mark7_player.mdl"},
- description = [[Save the day!
- Raid = No
- Carjack = No
- Allowed Guns = None
- PdRaid = No
- Mug = No
- Kidnap = No
- ]],
- weapons = {},
- command = "admin",
- max = 0,
- salary = 0,
- admin = 0,
- vote = false,
- hasLicense = false,
- customCheck = function(ply) return CLIENT or
- table.HasValue({"admin", "superadmin"}, ply:GetNWString("usergroup"))
- end,
- CustomCheckFailMsg = "You don't have the required rank to complete this action!",})
- TEAM_MODERATOR = DarkRP.createJob("Moderator on Duty", {
- color = Color(255, 0, 0, 255),
- model = {"models/avengers/iron man/patriot_player.mdl"},
- description = [[Moderate people.
- Raid = No
- Carjack = No
- Allowed Guns = None
- PdRaid = No
- Mug = No
- Kidnap = No
- ]],
- weapons = {},
- command = "moderator",
- max = 0,
- salary = 0,
- admin = 0,
- vote = false,
- hasLicense = false,
- customCheck = function(ply) return
- table.HasValue({"superadmin", "admin", "moderator"}, ply:GetUserGroup())
- end,
- CustomCheckFailMsg = "You don't have the required rank to complete this action!",
- })
- --[[
- Custom Jobs Bellow Here
- --]]
- --[[---------------------------------------------------------------------------
- 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_HITMAN)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement