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 your custom jobs under the following line:
- ---------------------------------------------------------------------------]]
- TEAM_SWAT = DarkRP.createJob("SWAT", {
- color = Color(0, 25, 255, 255),
- model = {
- "models/player/bfh_enforcer.mdl",
- "models/player/bfh_mechanic.mdl",
- "models/player/bfh_operator.mdl",
- "models/player/bfh_pro.mdl"
- },
- description = [[SWAT Officer]],
- weapons = {"fas2_mp5sd6", "carkeys", "weapon_handcuffs", "fas2_glock20", "realrbn_tazer", "door_ram", "arrest_stick", "unarrest_stick", "weapon_hands", "pockets", "pocket", "weapon_physgun", "gmod_tool"},
- command = "police",
- max = 3,
- salary = 350,
- admin = 0,
- vote = true,
- sortOrder = 3,
- hasLicense = true,
- category = "Civil Protection",
- PlayerSpawn = function(ply),
- ply:SetMaxHealth(100)
- ply:SetHealth(100)
- ply:SetArmor(100)
- end
- })
- TEAM_POLICE = DarkRP.createJob("Police", {
- color = Color(255, 0, 0, 255),
- model = {
- "models/taggart/police02/male_09.mdl",
- "models/taggart/police02/male_07.mdl",
- "models/taggart/police02/male_01.mdl",
- "models/taggart/police02/male_01.mdl"
- },
- command = "police_officer",
- description = [[Police Officer]],
- weapons = {"carkeys", "weapon_handcuffs", "fas2_glock20", "realrbn_tazer", "door_ram", "arrest_stick", "unarrest_stick", "weapon_hands", "pockets", "pocket", "weapon_physgun", "gmod_tool"},
- max = 5,
- salary = 250,
- admin = 0,
- vote = false,
- sortOrder = 1,
- hasLicense = true,
- category = "Civil Protection",
- PlayerSpawn = function(ply),
- ply:SetMaxHealth(100)
- ply:SetHealth(100)
- ply:SetArmor(50)
- end
- })
- TEAM_EMSMEDIC = DarkRP.createJob("EMS", {
- color = Color(255, 0, 0, 255),
- model = {
- "models/taggart/police02/male_09.mdl",
- "models/taggart/police02/male_07.mdl",
- "models/taggart/police02/male_01.mdl",
- "models/taggart/police02/male_01.mdl"
- },
- command = "ems_medic",
- description = [[EMS Medic]],
- weapons = {"carkeys", "weapon_handcuffs", "fas2_glock20", "realrbn_tazer", "door_ram", "arrest_stick", "unarrest_stick", "weapon_hands", "pockets", "pocket", "weapon_physgun", "gmod_tool"},
- max = 5,
- salary = 250,
- admin = 0,
- vote = false,
- sortOrder = 10,
- hasLicense = false,
- category = "Civil Protection",
- PlayerSpawn = function(ply),
- ply:SetMaxHealth(100)
- ply:SetHealth(100)
- ply:SetArmor(0)
- end
- })
- TEAM_FIREFIGHTER = DarkRP.createJob("Firefighter", {
- color = Color(255, 76, 0, 255),
- model = {"models/player/portal/male_06_fireman.mdl"},
- command = "firefighter",
- description = [[Firefighter]],
- weapons = {"carkeys", "door_ram", "weapon_hands", "pockets", "pocket", "weapon_physgun", "gmod_tool", "weapon_extinguisher_infinite"},
- max = 5,
- salary = 250,
- admin = 0,
- vote = false,
- sortOrder = 11,
- hasLicense = false,
- category = "Civil Protection",
- PlayerSpawn = function(ply),
- ply:SetMaxHealth(100)
- ply:SetHealth(100)
- ply:SetArmor(0)
- end
- })
- TEAM_MECHANIC = DarkRP.createJob("Mechanic", {
- color = Color(255, 76, 0, 255),
- model = {
- "models/player/group01/male_04.mdl",
- "models/player/group01/female_06.mdl"
- },
- description = [[Mechanic, fix things and tow! ]],
- weapons = {"carkeys", "weapon_hands", "pockets", "pocket", "weapon_physgun", "gmod_tool", "weapon_simrepair"},
- command = "mechanic",
- max = 3,
- salary = 150,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = true,
- category = "Citizens",
- NeedToChangeFrom = TEAM_CITIZEN,
- PlayerSpawn = function(ply),
- ply:SetMaxHealth(100)
- ply:SetHealth(100)
- ply:SetArmor(0)
- 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,
- [TEAM_POLICEOFFICER] = true,
- [TEAM_EMSMEDIC] = true,
- [TEAM_FIREFIGHTER] = true,
- }
- --[[---------------------------------------------------------------------------
- Jobs that are hitmen (enables the hitman menu)
- ---------------------------------------------------------------------------]]
- DarkRP.addHitmanTeam(TEAM_MOB)
Add Comment
Please, Sign In to add comment