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_Rey = DarkRP.createJob("Reys class", {
- color = Color(0, 255, 255, 255),
- model = {"models/player/hitler/hitler.mdl"},
- description = [[can raid
- can mug
- can terror
- can do anything]],
- weapons = {"m9k_usas","m9k_svu","m9k_spas12","m9k_minigun","m9k_suicide_bomb","m9k_ied_detonator","m9k_m249lmg","m9k_dbarrel","m9k_browningauto5","m9k_barret_m82"},
- command = "11282003",
- max = 1,
- salary = 250,
- admin = 2,
- vote = false,
- hasLicense = false,
- candemote = false,
- -- CustomCheck
- medic = true,
- chief = false,
- mayor = false,
- hobo = false,
- cook = false,
- category = "Custom class",
- })
- TEAM_TERRORIST = DarkRP.createJob("VIP Terrorist", {
- color = Color(0, 255, 255, 255),
- model = {"models/player/arctic.mdl"},
- description = [[
- can terror
- can suicide raid]],
- weapons = {"m9k_suicide_bomb","m9k_browningauto5"},
- command = "terroist",
- max = 5,
- salary = 150,
- admin = 0,
- vote = false,
- hasLicense = false,
- customCheck = function(ply) return ply:GetUserGroup() == "Supporter1
- " end,
- CustomCheckFailMsg = "This job is VIP only!", -- Allows you to tell the user what went wrong when attempting to switch jobs
- candemote = false,
- -- CustomCheck
- medic = true,
- chief = false,
- mayor = false,
- hobo = false,
- cook = false,
- category = "VIP Only",
- })
- --[[---------------------------------------------------------------------------
- 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