Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- People often copy jobs. When they do, the GM table does not exist anymore.
- -- This line makes the job code work both inside and outside of gamemode files.
- -- You should not copy this line into your code.
- local GAMEMODE = GAMEMODE or GM
- --[[--------------------------------------------------------
- Default teams. Please do not edit this file. Please use the darkrpmod addon instead.
- --------------------------------------------------------]]
- TEAM_CITIZEN = DarkRP.createJob("Citizen", {
- color = Color(20, 150, 20, 255),
- model = {
- "models/player/Group01/Female_01.mdl",
- "models/player/Group01/Female_02.mdl",
- "models/player/Group01/Female_03.mdl",
- "models/player/Group01/Female_04.mdl",
- "models/player/Group01/Female_06.mdl",
- "models/player/group01/male_01.mdl",
- "models/player/Group01/Male_02.mdl",
- "models/player/Group01/male_03.mdl",
- "models/player/Group01/Male_04.mdl",
- "models/player/Group01/Male_05.mdl",
- "models/player/Group01/Male_06.mdl",
- "models/player/Group01/Male_07.mdl",
- "models/player/Group01/Male_08.mdl",
- "models/player/Group01/Male_09.mdl"
- },
- description = [[The Citizen is the most basic level of society you can hold besides being a hobo. You have no specific role in city life.]],
- weapons = {},
- command = "citizen",
- max = 0,
- salary = GAMEMODE.Config.normalsalary,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = false,
- category = "Citizens",
- })
- TEAM_POLICE = DarkRP.createJob("Civil Protection", {
- color = Color(25, 25, 170, 255),
- model = {"models/player/police.mdl", "models/player/police_fem.mdl"},
- description = [[The protector of every citizen 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_usp", "m9k_m4a1", "stunstick", "door_ram", "weaponchecker"},
- command = "cp",
- max = 4,
- salary = 100,
- admin = 0,
- vote = false,
- hasLicense = true,
- ammo = {
- ["pistol"] = 60,
- },
- category = "Civil Protection",
- })
- TEAM_GUN = DarkRP.createJob("Gun Dealer", {
- color = Color(255, 140, 0, 255),
- model = "models/player/monk.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 = 4,
- 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/kleiner.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 = {"med_kit"},
- command = "medic",
- max = 3,
- salary = GAMEMODE.Config.normalsalary,
- admin = 0,
- vote = false,
- hasLicense = false,
- medic = true,
- category = "Citizens",
- })
- TEAM_CHIEF = DarkRP.createJob("Civil Protection Chief", {
- color = Color(20, 20, 255, 255),
- model = "models/player/combine_soldier_prisonguard.mdl",
- description = [[The Chief is the leader of the Civil Protection 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_usp", "m9k_m4a1", "m9k_mossberg590", "stunstick", "door_ram", "weaponchecker"},
- command = "chief",
- max = 1,
- salary = 150,
- admin = 0,
- vote = false,
- hasLicense = true,
- chief = true,
- ammo = {
- ["pistol"] = 60,
- },
- category = "Civil Protection",
- })
- 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 = {"unarrest_stick", "weaponchecker"},
- command = "mayor",
- max = 1,
- salary = 200,
- admin = 0,
- vote = true,
- hasLicense = true,
- mayor = true,
- category = "Civil Protection",
- PlayerDeath = function(ply, weapon, killer)
- ply:teamBan()
- ply:changeTeam(GAMEMODE.DefaultTeam, true)
- if killer:IsPlayer() then
- DarkRP.notifyAll(0, 4, "The mayor has been killed and is therefor demoted.")
- else
- DarkRP.notifyAll(0, 4, "The mayor has died and is therefor demoted.")
- end
- end
- })
- 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"},
- command = "hobo",
- max = 5,
- salary = 0,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = false,
- hobo = true,
- category = "Citizens",
- })
- TEAM_THIEF = DarkRP.createJob("Thief", {
- color = Color(217, 217, 217, 255),
- model = {"models/player/phoenix.mdl"},
- description = [[You're a thief, steal stuff.]],
- weapons = {"lockpick", "keypad_cracker"},
- command = "thief",
- max = 8,
- salary = 0,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = false,
- category = "Criminals"
- })
- TEAM_MAFIA = DarkRP.createJob("Mafia Member", {
- color = Color(166, 27, 27, 255),
- model = {
- "models/fearless/mafia02.mdl",
- "models/fearless/mafia04.mdl",
- "models/fearless/mafia06.mdl",
- "models/fearless/mafia07.mdl",
- "models/fearless/mafia09.mdl"
- },
- description = [[You are a member of the Mafia. You must obey the Godfather's every command.]],
- weapons = {"csgo_bayonet"},
- command = "mafia",
- max = 5,
- salary = 65,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = false,
- category = "Mafia"
- })
- TEAM_GODFATHER = DarkRP.createJob("Godfather", {
- color = Color(166, 27, 27, 255),
- model = {"models/fearless/don1.mdl"},
- description = [[You are the Godfather of the Mafia. You direct the Mafia's every command.]],
- weapons = {"lockpick", "keypad_cracker", "csgo_bayonet", "m9k_colt1911"},
- command = "godfather",
- max = 1,
- salary = 85,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = false,
- category = "Mafia"
- })
- TEAM_HITMAN = DarkRP.createJob("Hitman", {
- color = Color(186, 183, 27, 255),
- model = {"models/player/leet.mdl"},
- description = [[You're a Hitman, you take hit requests from people and make money while doing it.]],
- weapons = {},
- command = "hitman",
- max = 4,
- salary = 55,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = false,
- category = "Criminals"
- })
- TEAM_STAFF = DarkRP.createJob("Staff on Duty", {
- color = Color(255, 0, 0, 255),
- model = {"models/player/combine_super_soldier.mdl"},
- description = [[You are a Staff on Duty, you enforce the rules of LifeRP.]],
- weapons = {"weapon_keypadchecker", "unarrest_stick", "stunstick", "arrest_stick", "door_ram", "weaponchecker"},
- command = "staff",
- max = 5,
- salary = 0,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = false,
- category = "Staff",
- customCheck = function(ply) return CLIENT or
- table.HasValue({"Donor-Admin", "Trial-Moderator", "Moderator", "Administrator", "Management", "superadmin", "Owner"}, ply:GetNWString("usergroup"))
- end,
- CustomCheckFailMsg = "This job is for staff only!",
- })
- TEAM_GUARD = DarkRP.createJob("Security Guard", {
- color = Color(176, 176, 176, 255),
- model = {"models/player/odessa.mdl"},
- description = [[You are a Security Guard, you protect the person who hires you.]],
- weapons = {},
- command = "securityguard",
- max = 4,
- salary = 45,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = false,
- category = "Citizens"
- })
- TEAM_PROTHIEF = DarkRP.createJob("Professional Thief", {
- color = Color(150, 150, 150, 255),
- model = {"models/player/arctic.mdl"},
- description = [[You are a Professional Thief, you have more years of experience than a regular thief, and have upgraded raiding tools.]],
- weapons = {"pro_lockpick", "prokeypadcracker"},
- command = "professionalthief",
- max = 8,
- salary = 0,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = false,
- category = "VIP Jobs",
- customCheck = function(ply) return CLIENT or
- table.HasValue({"VIP", "Donor-Admin", "Moderator", "Administrator", "Management", "superadmin", "Owner"}, ply:GetNWString("usergroup"))
- end,
- CustomCheckFailMsg = "This job is VIP only!",
- })
- TEAM_PROHITMAN = DarkRP.createJob("Professional Hitman", {
- color = Color(186, 183, 27, 255),
- model = {"models/player/leet.mdl"},
- description = [[You are a Professional Hitman, you have more years of experience than a regular hitman. With your years of experience, you have acquired equipment to use to kill your targets quicker.]],
- weapons = {"m9k_intervention", "csgo_bayonet", "m9k_colt1911"},
- command = "professionalhitman",
- max = 4,
- salary = 75,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = false,
- category = "VIP Jobs",
- customCheck = function(ply) return CLIENT or
- table.HasValue({"VIP", "Donor-Admin", "Moderator", "Administrator", "Management", "superadmin", "Owner"}, ply:GetNWString("usergroup"))
- end,
- CustomCheckFailMsg = "This job is VIP only!",
- })
- TEAM_SS = DarkRP.createJob("Secret Service", {
- color = Color(101, 126, 255, 255),
- model = {
- "models/fearless/bsuit04.mdl",
- "models/fearless/bsuit01.mdl"
- },
- description = [[You are a member of the Secret Service, your job is to protect the mayor at all costs.]],
- weapons = {"arrest_stick", "stunstick", "unarrest_stick", "weaponchecker", "m9k_m29satan"},
- command = "secretservice",
- max = 4,
- salary = 100,
- admin = 0,
- vote = true,
- hasLicense = true,
- candemote = true,
- category = "Civil Protection"
- })
- TEAM_HOBOLEADER = DarkRP.createJob("Hobo Leader", {
- color = ,
- model = {"models/player/soldier_stripped.mdl"},
- description = [[You are the Hobo Leader, you command the hobos every command. With you around you can tell the hobos to raid, mug, or do any crime related activity.]],
- weapons = {"lockpick", "keypad_cracker", "weapon_bugbait"},
- command = "hoboleader",
- max = 1,
- salary = 0,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = false,
- category = "Citizens"
- })
- EAM_BMD = DarkRP.createJob("Black Market Dealer", {
- color = Color(154, 59, 166, 255),
- model = {"models/player/gman_high.mdl"},
- description = [[You are a Black Market Dealer, you sell lockpicks and keypad crackers to any person who requests them. Make sure you aren't caught by the police!]],
- weapons = {},
- command = "blackmarketdealer",
- max = 4,
- salary = 45,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = false,
- category = "Merchants"
- })
- if not DarkRP.disabledDefaults["modules"]["hungermod"] then
- TEAM_COOK = DarkRP.createJob("Cook", {
- color = Color(238, 99, 99, 255),
- model = "models/player/mossman.mdl",
- description = [[As a cook, it is your responsibility to feed the other members of your city.
- You can spawn a microwave and sell the food you make:
- /buymicrowave]],
- weapons = {},
- command = "cook",
- max = 2,
- salary = 45,
- admin = 0,
- vote = false,
- hasLicense = false,
- cook = true
- })
- end
- -- 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_COOK = TEAM_COOK or -1
- -- Door groups
- AddDoorGroup("Cops and Mayor only", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR, TEAM_SS)
- 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, TEAM_SS})
- DarkRP.createAgenda("Mafia agenda", {TEAM_GODFATHER}, {TEAM_MAFIA})
- -- 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)
- -- Initial team when first spawning
- GAMEMODE.DefaultTeam = TEAM_CITIZEN
- -- Teams that belong to Civil Protection
- GAMEMODE.CivilProtection = {
- [TEAM_POLICE] = true,
- [TEAM_CHIEF] = true,
- [TEAM_MAYOR] = true,
- }
- -- Hitman team
- DarkRP.addHitmanTeam(TEAM_HITMAN)
- -- Demote groups
- DarkRP.createDemoteGroup("Cops", {TEAM_POLICE, TEAM_CHIEF})
- DarkRP.createDemoteGroup("Gangsters", {TEAM_GANG, TEAM_MOB})
- -- Default categories
- DarkRP.createCategory{
- name = "Citizens",
- categorises = "jobs",
- startExpanded = true,
- color = Color(0, 107, 0, 255),
- canSee = fp{fn.Id, true},
- sortOrder = 100,
- }
- DarkRP.createCategory{
- name = "Civil Protection",
- categorises = "jobs",
- startExpanded = true,
- color = Color(25, 25, 170, 255),
- canSee = fp{fn.Id, true},
- sortOrder = 101,
- }
- DarkRP.createCategory{
- name = "Mafia",
- categorises = "jobs",
- startExpanded = true,
- color = Color(255, 0, 0, 255),
- canSee = fp{fn.Id, true},
- sortOrder = 101,
- }
- DarkRP.createCategory{
- name = "Merchants",
- categorises = "jobs",
- startExpanded = true,
- color = Color(139, 176, 255, 255),
- canSee = fp{fn.Id, true},
- sortOrder = 101,
- }
- DarkRP.createCategory{
- name = "VIP Jobs",
- categorises = "jobs",
- startExpanded = true,
- color = Color(75, 75, 75, 255),
- canSee = fp{fn.Id, true},
- sortOrder = 105,
- }
- DarkRP.createCategory{
- name = "Criminals",
- categorises = "jobs",
- startExpanded = true,
- color = Color(75, 75, 75, 255),
- canSee = fp{fn.Id, true},
- sortOrder = 101,
- }
- DarkRP.createCategory{
- name = "Staff",
- categorises = "jobs",
- startExpanded = true,
- color = Color(75, 75, 75, 255),
- canSee = fp{fn.Id, true},
- sortOrder = 254,
- }
- DarkRP.createCategory{
- name = "Other",
- categorises = "jobs",
- startExpanded = true,
- color = Color(0, 107, 0, 255),
- canSee = fp{fn.Id, true},
- sortOrder = 255,
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement