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 your custom jobs under the following line:
- ---------------------------------------------------------------------------]]
- TEAM_CITIZEN = DarkRP.createJob("Hotel Owner", {
- color = Color(20, 150, 20, 255),
- model = {"models/player/hostage/hostage_03.mdl"},
- description = [[The Hotel Owner owns and operates the hotel. They can only base in the hotel and must protect their customers.]],
- weapons = {"weapon_fists"},
- command = "howner",
- max = 0,
- salary = 150,
- admin = 0,
- vote = false,
- hasLicense = false,
- category = "Citizens",
- })
- TEAM_ADMIN = DarkRP.createJob("Staff on duty", {
- color = Color(25, 25, 25, 255),
- model = "models/player/obese_male.mdl",
- description = [[Default moderator class.]],
- weapons = {"lockpick", "unarrest_stick","weapon_fists"},
- command = "mobboss",
- max = 0,
- salary = 1000,
- admin = 1,
- vote = false,
- hasLicense = false,
- category = {"Staff"}
- })
- TEAM_POLICE = DarkRP.createJob("Police", {
- color = Color(25, 25, 170, 255),
- model = {"models/player/combine_soldier.mdl"},
- description = [[The protector of every theif that lives in the city.
- You have the power to arrest criminals and protect innocents.
- Hit a player with your arrest baton to put them in jail.
- Bash a player with a stunstick and they may learn to obey the law.
- The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
- The Battering Ram can also unfreeze frozen props (if enabled).
- Type /wanted <name> to alert the public to the presence of a criminal.]],
- weapons = {"arrest_stick", "unarrest_stick", "m9k_sig_p229r", "stunstick", "door_ram"},
- command = "cp",
- max = 4,
- salary = GAMEMODE.Config.normalsalary * 1.45,
- admin = 0,
- vote = true,
- hasLicense = true,
- category = "Police",
- })
- TEAM_GANG = DarkRP.createJob("Gangster", {
- color = Color(75, 75, 75, 255),
- model = {
- "models/player/Group03/Female_01.mdl",
- "models/player/Group03/Female_02.mdl",
- "models/player/Group03/Female_03.mdl",
- "models/player/Group03/Female_04.mdl",
- "models/player/Group03/Female_06.mdl",
- "models/player/group03/male_01.mdl",
- "models/player/Group03/Male_02.mdl",
- "models/player/Group03/male_03.mdl",
- "models/player/Group03/Male_04.mdl",
- "models/player/Group03/Male_05.mdl",
- "models/player/Group03/Male_06.mdl",
- "models/player/Group03/Male_07.mdl",
- "models/player/Group03/Male_08.mdl",
- "models/player/Group03/Male_09.mdl"},
- description = [[The lowest person of crime.
- A gangster generally works for the Mobboss who runs the crime family.
- The Mob boss sets your agenda and you follow it or you might be punished.]],
- weapons = {"m9k_hk45"},
- command = "gangster",
- max = 3,
- salary = GAMEMODE.Config.normalsalary,
- admin = 0,
- vote = false,
- hasLicense = false,
- category = "Gangsters",
- })
- TEAM_MOB = DarkRP.createJob("Mob boss", {
- color = Color(25, 25, 25, 255),
- model = "models/player/gman_high.mdl",
- description = [[The Mob boss is the boss of the criminals in the city.
- With his power he coordinates the gangsters and forms an efficient crime organization.
- He has the ability to break into houses by using a lockpick.
- The Mob boss posesses the ability to unarrest you.]],
- weapons = {"lockpick", "unarrest_stick","m9k_contender"},
- command = "mobboss",
- max = 1,
- salary = GAMEMODE.Config.normalsalary * 1.34,
- admin = 0,
- vote = false,
- hasLicense = false,
- category = "Gangsters",
- })
- TEAM_GUN = DarkRP.createJob("Gun Dealer", {
- color = Color(255, 140, 0, 255),
- model = "models/player/barney.mdl",
- description = [[A Gun Dealer is the only person who can sell guns to other people.
- Make sure you aren't caught selling illegal firearms to the public! You might get arrested!]],
- weapons = {},
- command = "gundealer",
- max = 2,
- salary = GAMEMODE.Config.normalsalary,
- admin = 0,
- vote = false,
- hasLicense = false,
- category = "Citizens",
- })
- TEAM_MEDIC = DarkRP.createJob("Medic", {
- color = Color(47, 79, 79, 255),
- model = {
- "models/player/Group03m/female_01.mdl",
- "models/player/Group03m/female_02.mdl",
- "models/player/Group03m/female_03.mdl",
- "models/player/Group03m/female_04.mdl",
- "models/player/Group03m/female_05.mdl",
- "models/player/Group03m/male_01.mdl",
- "models/player/Group03m/male_02.mdl",
- "models/player/Group03m/male_03.mdl",
- "models/player/Group03m/male_04.mdl",
- "models/player/Group03m/male_05.mdl"},
- description = [[With your medical knowledge you work to restore players to full health.
- Without a medic, people cannot be healed.
- Left click with the Medical Kit to heal other players.
- Right click with the Medical Kit to heal yourself.]],
- weapons = {"weapon_medkit"},
- command = "medic",
- max = 3,
- salary = GAMEMODE.Config.normalsalary,
- admin = 0,
- vote = false,
- hasLicense = false,
- medic = true,
- category = "Citizens",
- })
- TEAM_CHIEF = DarkRP.createJob("Police Chief", {
- color = Color(20, 20, 255, 255),
- model = "models/player/combine_super_soldier.mdl",
- description = [[The Chief is the leader of the Police unit.
- Coordinate the police force to enforce law in the city.
- Hit a player with arrest baton to put them in jail.
- Bash a player with a stunstick and they may learn to obey the law.
- The Battering Ram can break down the door of a criminal, with a warrant for his/her arrest.
- Type /wanted <name> to alert the public to the presence of a criminal.
- Type /jailpos to set the Jail Position]],
- weapons = {"arrest_stick", "unarrest_stick", "m9k_deagle", "stunstick", "door_ram", "weaponchecker"},
- command = "chief",
- max = 1,
- salary = 400,
- admin = 0,
- vote = false,
- hasLicense = true,
- chief = true,
- category = "Police",
- })
- TEAM_MAYOR = DarkRP.createJob("Mayor", {
- color = Color(150, 20, 20, 255),
- model = "models/player/breen.mdl",
- description = [[The Mayor of the city creates laws to govern the city.
- If you are the mayor you may create and accept warrants.
- Type /wanted <name> to warrant a player.
- Type /jailpos to set the Jail Position.
- Type /lockdown initiate a lockdown of the city.
- Everyone must be inside during a lockdown.
- The cops patrol the area.
- /unlockdown to end a lockdown]],
- weapons = {"m9k_glock"},
- command = "mayor",
- max = 1,
- salary = 700,
- admin = 0,
- vote = true,
- hasLicense = false,
- mayor = true,
- category = "Police",
- })
- TEAM_HOBO = DarkRP.createJob("Hobo", {
- color = Color(80, 45, 0, 255),
- model = "models/player/corpse1.mdl",
- description = [[The lowest member of society. Everybody laughs at you.
- You have no home.
- Beg for your food and money
- Sing for everyone who passes to get money
- Make your own wooden home somewhere in a corner or outside someone else's door]],
- weapons = {"weapon_bugbait","weapon_fists"},
- command = "hobo",
- max = 5,
- salary = 0,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = false,
- hobo = true,
- category = "Citizens",
- })
- TEAM_HOBO = DarkRP.createJob("Hobo Lord", {
- color = Color(80, 45, 0, 255),
- model = "models/player/corpse1.mdl",
- description = [[The lowest member of society.
- You have no home.
- Beg for your food and money
- Sing for everyone who passes to get money
- Make your own wooden home somewhere in a corner or outside someone else's door]],
- weapons = {"weapon_bugbait","weapon_crowbar"},
- command = "hobolord",
- max = 1,
- salary = 101,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = false,
- hobo = true,
- category = "Citizens",
- })
- DarkRP.createCategory{
- name = "Staff",
- categorises = "jobs",
- startExpanded = false,
- color = Color(0, 0, 21, 255),
- canSee = fp{fn.Id, true},
- sortOrder = 255,
- }
- --[[---------------------------------------------------------------------------
- Define which team joining players spawn into and what team you change to if demoted
- ---------------------------------------------------------------------------]]
- GAMEMODE.DefaultTeam = TEAM_CITIZEN
- --[[---------------------------------------------------------------------------
- Define which teams belong to Police
- Police 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)
- -------------------------------------------------------------------------------
- -- Compatibility for when default teams are disabled
- TEAM_CITIZEN = TEAM_CITIZEN or -1
- TEAM_POLICE = TEAM_POLICE or -1
- TEAM_GANG = TEAM_GANG or -1
- TEAM_MOB = TEAM_MOB or -1
- TEAM_GUN = TEAM_GUN or -1
- TEAM_MEDIC = TEAM_MEDIC or -1
- TEAM_CHIEF = TEAM_CHIEF or -1
- TEAM_MAYOR = TEAM_MAYOR or -1
- TEAM_HOBO = TEAM_HOBO or -1
- TEAM_ADMIN = TEAM_ADMIN or -1
- -- Door groups
- AddDoorGroup("Cops and Mayor only", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
- AddDoorGroup("Gundealer only", TEAM_GUN)
- -- Agendas
- DarkRP.createAgenda("Gangster's agenda", TEAM_MOB, {TEAM_GANG})
- DarkRP.createAgenda("Police agenda", {TEAM_MAYOR, TEAM_CHIEF}, {TEAM_POLICE})
- -- Group chats
- DarkRP.createGroupChat(function(ply) return ply:isCP() end)
- DarkRP.createGroupChat(TEAM_MOB, TEAM_GANG)
- DarkRP.createGroupChat(function(listener, ply) return not ply or ply:Team() == listener:Team() end)
- -- Hitman team
- DarkRP.addHitmanTeam(TEAM_MOB)
- -- Demote groups
- DarkRP.createDemoteGroup("Cops", {TEAM_POLICE, TEAM_CHIEF,TEAM_MAYOR})
- DarkRP.createDemoteGroup("Gangsters", {TEAM_GANG, TEAM_MOB})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement