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("Citoyen", {
- 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_Banquier = DarkRP.createJob("Banquier", {
- color = Color(143, 163, 157, 255),
- model = {"models/player/Group01/Male_09.mdl"},
- description = [[Votre but est de proteger la banque des attaques des criminels et mafieux ! Protegez la ville et vous aurez peut être une paye du Maire.]],
- weapons = {},
- command = "banque",
- max = 1,
- salary = GAMEMODE.Config.normalsalary * 1.45,
- admin = 0,
- vote = false,
- hasLicense = false,
- category = "Citizens",
- })
- TEAM_POLICE = DarkRP.createJob("SWAT", {
- color = Color(25, 25, 170, 255),
- model = {"models/Dauge/BF3_GIGN.mdl"},
- description = [[Votre but est de proteger la banque des attaques des criminels et mafieux ! Protegez la ville et vous aurez peut être une paye du Maire.]],
- weapons = {"arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker", "m9k_ak47"},
- command = "cp",
- max = 10,
- salary = GAMEMODE.Config.normalsalary * 1.45,
- admin = 0,
- vote = true,
- hasLicense = false,
- category = "Citizens",
- })
- TEAM_GANG = DarkRP.createJob("Criminel", {
- 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 = {},
- command = "gangster",
- max = 3,
- salary = GAMEMODE.Config.normalsalary,
- admin = 0,
- vote = false,
- hasLicense = false,
- category = "Gangsters",
- })
- TEAM_GANG = DarkRP.createJob("Mafieux", {
- color = Color(255, 0, 0, 255),
- model = {
- "models/fearless/bsuit01.mdl",
- "models/fearless/mafia02.mdl",
- "models/fearless/mafia07.mdl",
- "models/fearless/mafia09.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 = {},
- command = "mafieux",
- max = 10,
- salary = GAMEMODE.Config.normalsalary,
- admin = 0,
- vote = false,
- hasLicense = false,
- category = "Gangsters",
- })
- TEAM_MOB = DarkRP.createJob("Tueur a gage", {
- 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_knife"},
- command = "mobboss",
- max = 1,
- salary = GAMEMODE.Config.normalsalary * 1.34,
- admin = 0,
- vote = false,
- hasLicense = false,
- category = "Gangsters",
- })
- TEAM_GUN = DarkRP.createJob("Vendeur d'arme", {
- 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 = 2,
- salary = GAMEMODE.Config.normalsalary,
- admin = 0,
- vote = false,
- hasLicense = false,
- category = "Citizens",
- })
- TEAM_MEDIC = DarkRP.createJob("Médecin", {
- 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_BRAQUEUR = DarkRP.createJob("Braqueur *VIP*", {
- color = Color(255, 0, 0, 255),
- model = "models/player/pd2_dallas_p.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 = {"m9k_colt1911"},
- command = "braqueur",
- max = 3,
- salary = GAMEMODE.Config.normalsalary,
- admin = 0,
- vote = false,
- hasLicense = false,
- medic = true,
- category = "Citizens",
- customCheck = function(ply) return ply:GetNWString("usergroup") == "VIP" or ply:GetNWString("usergroup") == "superadmin" or ply:GetNWString("usergroup") == "Fondateur" end,
- CustomCheckFailMsg = "Vous devez avoir le vip pour utiliser ce job"
- })
- TEAM_BRAQUEUR = DarkRP.createJob("Hacker *VIP*", {
- color = Color(168, 16, 107, 255),
- model = "models/player/spike/Michael.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_arc_atmhack"},
- command = "hacker",
- max = 3,
- salary = GAMEMODE.Config.normalsalary,
- admin = 0,
- vote = false,
- hasLicense = false,
- medic = true,
- category = "Citizens",
- customCheck = function(ply) return ply:GetNWString("usergroup") == "VIP" or ply:GetNWString("usergroup") == "superadmin" or ply:GetNWString("usergroup") == "Fondateur" end,
- CustomCheckFailMsg = "Vous devez avoir le vip pour utiliser ce job"
- })
- TEAM_MAYOR = DarkRP.createJob("Maire", {
- 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 = {},
- command = "mayor",
- max = 1,
- salary = GAMEMODE.Config.normalsalary * 1.89,
- admin = 0,
- vote = true,
- hasLicense = false,
- mayor = true,
- category = "Civil Protection",
- })
- TEAM_HOBO = DarkRP.createJob("Clochard", {
- 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_VOLEUR = DarkRP.createJob("Voleur", {
- color = Color(159, 159, 159, 255),
- model = {"models/player/phoenix.mdl"},
- description = [[Votre boulot est simple, cambrioler !]],
- weapons = {"lockpick"},
- command = "v",
- max = 2,
- salary = 89,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = true,
- -- CustomCheck
- medic = false,
- chief = false,
- mayor = false,
- hobo = false,
- cook = false,
- category = "Citizens",
- })
- if not DarkRP.disabledDefaults["modules"]["hungermod"] then
- TEAM_COOK = DarkRP.createJob("Epiciere", {
- color = Color(238, 99, 99, 255),
- model = "models/player/mossman.mdl",
- description = [[Vous devez nourrire toutes la populations, vous pouvez acheter un micro-onde avec
- /buymicrowave]],
- weapons = {},
- command = "epiciere",
- 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
- /*
- --------------------------------------------------------
- HOW TO MAKE A DOOR GROUP
- --------------------------------------------------------
- AddDoorGroup("NAME OF THE GROUP HERE, you see this when looking at a door", Team1, Team2, team3, team4, etc.)
- The default door groups, can also be used as examples:
- */
- AddDoorGroup("Force de l'ordre & Maire", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
- AddDoorGroup("Gundealer only", TEAM_GUN)
- AddDoorGroup("TheWalkingRP City")
- AddDoorGroup("Banque", TEAM_BANQUIER)
- /*
- --------------------------------------------------------
- HOW TO MAKE AN AGENDA
- --------------------------------------------------------
- DarkRP.createAgenda(Title of the agenda, Manager (who edits it), Listeners (the ones who just see and follow the agenda))
- It's possible to have multiple managers. In that case you have to put all the managers in '{}' (see Police agenda)
- The default agendas, can also be used as examples:
- */
- DarkRP.createAgenda("Gangster's agenda", TEAM_MOB, {TEAM_GANG})
- DarkRP.createAgenda("Police agenda", {TEAM_MAYOR, TEAM_CHIEF}, {TEAM_POLICE})
- /*
- ---------------------------------------------------------------------------
- HOW TO MAKE A GROUP CHAT
- ---------------------------------------------------------------------------
- Pick one!
- DarkRP.createGroupChat(List of team variables separated by comma)
- or
- DarkRP.createGroupChat(a function with ply as argument that returns whether a random player is in one chat group)
- This one is for people who know how to script Lua.
- */
- 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)
- /*---------------------------------------------------------------------------
- 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,
- }
- /*---------------------------------------------------------------------------
- Enable hitman goodies on this team
- ---------------------------------------------------------------------------*/
- DarkRP.addHitmanTeam(TEAM_MOB)
- /*---------------------------------------------------------------------------
- Default 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 = "Gangsters",
- categorises = "jobs",
- startExpanded = true,
- color = Color(75, 75, 75, 255),
- canSee = fp{fn.Id, true},
- sortOrder = 101,
- }
- DarkRP.createCategory{
- name = "Other",
- categorises = "jobs",
- startExpanded = true,
- color = Color(0, 107, 0, 255),
- canSee = fp{fn.Id, true},
- sortOrder = 255,
- }
- DarkRP.createCategory{
- name = "Admin",
- 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