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("Civil", {
- color = Color(20, 150, 20, 255),
- model = {
- "models/player/aiden_pearce.mdl",
- "models/the walking dead survival instincts/merle_dixon.mdl",
- "models/player/korka007/chloe.mdl",
- "models/rottweiler/freeman.mdl",
- "models/player/faith.mdl",
- },
- description = [[Citoyen de Liberty City.]],
- weapons = {"weapon_arc_atmcard"},
- command = "citizen",
- max = 0,
- salary = 100,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = false
- })
- TEAM_POLICE = DarkRP.createJob("Policier", {
- color = Color(25, 25, 170, 255),
- model = {
- "models/humans/nypd1940/male_01.mdl",
- "models/humans/nypd1940/male_02.mdl",
- "models/humans/nypd1940/male_03.mdl",
- "models/humans/nypd1940/male_04.mdl",
- "models/humans/nypd1940/male_05.mdl",
- "models/humans/nypd1940/male_06.mdl",
- "models/humans/nypd1940/male_07.mdl",
- "models/humans/nypd1940/male_08.mdl",
- "models/humans/nypd1940/male_09.mdl"
- },
- description = [[faire régner la loi est votre devoir.]],
- weapons = {"arrest_stick", "unarrest_stick","stunstick", "door_ram", "weaponchecker","weapon_arc_atmcard","m9k_colt1911","weapon_cuff_police","weapon_stungun"},
- command = "cp",
- max = 15,
- salary = 300,
- admin = 0,
- vote = true,
- hasLicense = true,
- ammo = {
- ["Glock-18"] = 120,
- }
- })
- TEAM_DJ = DarkRP.createJob("DJ", {
- color = Color(80, 45, 0, 255),
- model = {
- "models/player/daftpunk/daft_gold.mdl",
- "models/player/daftpunk/daft_silver.mdl"
- },
- description = [[Mix mix mix!]],
- weapons = {"weapon_arc_atmcard"},
- command = "jobdj",
- max = 2,
- salary = 500,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = false
- })
- TEAM_CHIEF = DarkRP.createJob("Commissaire", {
- color = Color(20, 20, 255, 255),
- model = "models/player/korka007/wick.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","stunstick", "door_ram", "weaponchecker","weapon_arc_atmcard","m9k_colt1911","weapon_cuff_police","weapon_stungun"},
- command = "chief",
- max = 1,
- salary = 400,
- admin = 0,
- vote = true,
- hasLicense = true,
- chief = true,
- NeedToChangeFrom = TEAM_POLICE,
- ammo = {
- ["pistol"] = 60,
- }
- })
- TEAM_GANG = DarkRP.createJob("Gangster", {
- color = Color(75, 75, 75, 255),
- model = {
- "models/ninja/vaas.mdl",
- "models/the walking dead survival instincts/daryl_dixon.mdl"
- },
- description = [[Vous semez la terreur autour de vous.]],
- weapons = {"weapon_arc_atmcard"},
- command = "gangster",
- max = 5,
- salary = 300,
- admin = 0,
- vote = false,
- hasLicense = false
- })
- TEAM_MAF = DarkRP.createJob("Mafieux", {
- color = Color(75, 75, 75, 255),
- model = {
- "models/humans/jacketntie/male_05.mdl",
- "models/humans/jacketntie/male_07.mdl",
- "models/humans/jacketntie/male_09.mdl"
- },
- description = [[Vous faites du traffic illegal pour la famille.]],
- weapons = {"weapon_arc_atmcard"},
- command = "mafia",
- max = 5,
- salary = 300,
- admin = 0,
- vote = false,
- hasLicense = false
- })
- TEAM_YAK = DarkRP.createJob("Yakuza VIP", {
- color = Color(75, 75, 75, 255),
- model = {
- "models/sd/players/[soy_brawler]-head_brawler_dbs.mdl",
- "models/sd/players/[soy_grappler].mdl",
- "models/sd/players/[soy_quick]-head_quick_soy.mdl",
- "models/sd/players/[soy_striker]-head_striker_soy.mdl"
- },
- description = [[Vous semez la terreur.]],
- weapons = {"weapon_arc_atmcard","weapon_fists","cw_glock"},
- command = "yakuza",
- max = 5,
- salary = 450,
- admin = 0,
- vote = false,
- hasLicense = false,
- customCheck = function(ply) return CLIENT or ply:IsUserGroup("vip") or ply:IsUserGroup("moderator") or ply:IsAdmin() or ply:IsSuperAdmin() end,
- CustomCheckFailMsg = "Uniquement pour les VIP!"
- })
- TEAM_CMAF = DarkRP.createJob("Le parrain", {
- color = Color(75, 75, 75, 255),
- model = {
- "models/characters/gallaha.mdl"
- },
- description = [[La mafia est sous vos ordres.]],
- weapons = {"weapon_arc_atmcard"},
- command = "parrain",
- max = 1,
- salary = 350,
- admin = 0,
- vote = false,
- hasLicense = false
- })
- TEAM_CHI = DarkRP.createJob("Chimiste", {
- color = Color(75, 75, 75, 255),
- model = {
- "models/agent_47.mdl",
- "models/npc/cdc_soldier_npc.mdl"
- },
- description = [[Vous Frabiquez de la meth et la revendez à un bon prix.]],
- weapons = {"weapon_arc_atmcard"},
- command = "chimiste",
- max = 2,
- salary = 200,
- admin = 0,
- vote = false,
- hasLicense = false,
- })
- TEAM_DEAL = DarkRP.createJob("Cultivateur", {
- color = Color(75, 75, 75, 255),
- model = "models/snoopdogg.mdl",
- description = [[Vous Frabiquez de la weed pour ensuite la revendre.]],
- weapons = {"weapon_arc_atmcard"},
- command = "dealer",
- max = 4,
- salary = 200,
- admin = 0,
- vote = false,
- hasLicense = false,
- })
- TEAM_AGSECU = DarkRP.createJob("Agent de securite", {
- color = Color(75, 75, 75, 255),
- model = {
- "models/player/guard_pack/guard_01.mdl",
- "models/player/guard_pack/guard_02.mdl",
- "models/player/guard_pack/guard_05.mdl",
- "models/player/guard_pack/guard_09.mdl"
- },
- description = [[Votre devoir est de protèger un commerce ou une personne.]],
- weapons = {"stunstick","weapon_arc_atmcard","weapon_stungun"},
- command = "agentsecu",
- max = 8,
- salary = 300,
- admin = 0,
- vote = false,
- hasLicense = false
- })
- TEAM_BANK = DarkRP.createJob("Banquier", {
- color = Color(75, 75, 75, 255),
- model = {
- "models/player/tfa_irons.mdl"
- },
- description = [[Votre rôle consiste à ouvrir une banque et de proposer vos services.]],
- weapons = {"weapon_arc_atmcard"},
- command = "Banquier",
- max = 5,
- salary = 350,
- admin = 0,
- vote = false,
- hasLicense = false
- })
- TEAM_BRAC = DarkRP.createJob("Braqueur", {
- color = Color(75, 75, 75, 255),
- model = {
- "models/player/pd2_chains_p.mdl",
- "models/player/pd2_hoxton_p.mdl",
- },
- description = [[Braquer c'est votre truc..]],
- weapons = {"weapon_arc_atmcard"},
- command = "braqueur",
- max = 4,
- salary = 250,
- admin = 0,
- vote = false,
- hasLicense = false
- })
- TEAM_PSYC = DarkRP.createJob("Psycopathe VIP", {
- color = Color(75, 75, 75, 255),
- model = {
- "models/mark2580/borderlands/bl1_mordecai_player.mdl",
- "models/grandtheftauto5/trevor.mdl"
- },
- description = [[Un psycopathe je vous fais pas de dessin.]],
- weapons = {"weapon_arc_atmcard","m9k_knife"},
- command = "psycopathe",
- max = 3,
- salary = 200,
- admin = 0,
- vote = false,
- hasLicense = false,
- customCheck = function(ply) return CLIENT or ply:IsUserGroup("vip") or ply:IsUserGroup("moderator") or ply:IsAdmin() or ply:IsSuperAdmin() end,
- CustomCheckFailMsg = "Uniquement pour les VIP!"
- })
- TEAM_MOB = DarkRP.createJob("Chef de gang", {
- color = Color(25, 25, 25, 255),
- model = "models/player/bobert/joker.mdl",
- description = [[Vous êtes respecter et suivi par les gangsters.]],
- weapons = {"lockpick", "unarrest_stick", "weapon_arc_atmcard","m9k_knife"},
- command = "mobboss",
- max = 1,
- salary = 300,
- admin = 0,
- vote = false,
- hasLicense = false
- })
- TEAM_GUN = DarkRP.createJob("Vendeur d'armes", {
- color = Color(255, 140, 0, 255),
- model = "models/player/slow/50cent/slow.mdl",
- description = [[Vous vendez toute sortes de calibres.]],
- weapons = {"weapon_arc_atmcard"},
- command = "gundealer",
- max = 4,
- salary = 200,
- admin = 0,
- vote = false,
- hasLicense = false
- })
- TEAM_MEDIC = DarkRP.createJob("Medecin", {
- color = Color(47, 79, 79, 255),
- model = "models/player/kleiner.mdl",
- description = [[Vous soignez les personnes blessé ou atteinte.]],
- weapons = {"med_kit","weapon_arc_atmcard"},
- command = "medic",
- max = 5,
- salary = 250,
- admin = 0,
- vote = false,
- hasLicense = false,
- medic = true
- })
- TEAM_MAYOR = DarkRP.createJob("President", {
- color = Color(150, 20, 20, 255),
- model = "models/obama/obama.mdl",
- description = [[Vous gerez la ville, et les force de l'ordre.]],
- weapons = {"weapon_arc_atmcard"},
- command = "president",
- max = 1,
- salary = 500,
- admin = 0,
- vote = true,
- hasLicense = true,
- mayor = true,
- PlayerDeath = function(ply, weapon, killer)
- if( ply:Team() == TEAM_MAYOR ) then
- if killer:Nick() ~= nil then
- ply:changeTeam( GAMEMODE.DefaultTeam, true )
- end
- for k,v in pairs( player.GetAll() ) do
- if killer:Nick() ~= nil then
- DarkRP.notify(v, 1, 4, "Le maire a ete tuer! Des nouvelles election commenceront bientot" )
- else
- DarkRP.notify(v, 1, 4, "Le maire est mort! Des nouvelles election commenceront bientot" )
- end
- end
- end
- end,
- })
- TEAM_HOBO = DarkRP.createJob("SDF", {
- color = Color(80, 45, 0, 255),
- model = {
- "models/player/eli.mdl",
- "models/jessev92/player/l4d/m9-hunter.mdl"
- },
- description = [[Tu te demerde !]],
- weapons = {"weapon_arc_atmcard"},
- command = "hobo",
- max = 10,
- salary = 0,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = false,
- hobo = true
- })
- TEAM_VOL = DarkRP.createJob("Voleur", {
- color = Color(80, 45, 0, 255),
- model = "models/grandtheftauto5/franklin.mdl",
- description = [[Tu te demerde !]],
- weapons = {"weapon_arc_atmcard","lockpick","keypad_cracker"},
- command = "voleur",
- max = 3,
- salary = 0,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = false
- })
- TEAM_MEC = DarkRP.createJob("Mecano", {
- color = Color(75, 75, 75, 255),
- model = {"models/player/odessa.mdl"},
- description = [[Reparez les vehicules endommagés]],
- weapons = {"vc_repair","weapon_arc_atmcard"},
- command = "mec",
- max = 4,
- salary = 300,
- admin = 0,
- vote = false,
- hasLicense = false
- })
- if not DarkRP.disabledDefaults["modules"]["hungermod"] then
- TEAM_COOK = DarkRP.createJob("Restaurateur", {
- color = Color(238, 99, 99, 255),
- model = {"models/nikout/carleypm.mdl"},
- description = [[Vous vendez de la nourriture à votre prix.]],
- weapons = {"weapon_arc_atmcard"},
- command = "cook",
- max = 8,
- salary = 300,
- admin = 0,
- vote = false,
- hasLicense = false,
- cook = true
- })
- TEAM_HIT = DarkRP.createJob("Tueur a Gage VIP", {
- color = Color(67, 75, 75, 255),
- model = {"models/player/agent_47.mdl"},
- description = [[Vous negociez des contract contre de l argent]],
- weapons = {"weapon_arc_atmcard","climb_swep2","weapon_m24sd"},
- command = "hit",
- max = 2,
- salary = 300,
- admin = 0,
- vote = false,
- hasLicense = false,
- customCheck = function(ply) return CLIENT or ply:IsUserGroup("vip") or ply:IsUserGroup("moderator") or ply:IsAdmin() or ply:IsSuperAdmin() end,
- CustomCheckFailMsg = "Uniquement pour les VIP!"
- })
- TEAM_SWAT = DarkRP.createJob("SWAT VIP", {
- color = Color(143, 75, 156, 255),
- model = {"models/player/gasmask.mdl"},
- description = [[Vous etes le SWAT intervenez en cas de problemes]],
- weapons = {"arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker","weapon_arc_atmcard","cw_glock","weapon_fists","weapon_cuff_police","weapon_stungun"},
- command = "swat",
- max = 3,
- salary = 450,
- admin = 0,
- vote = true,
- hasLicense = false,
- customCheck = function(ply) return CLIENT or ply:IsUserGroup("vip") or ply:IsUserGroup("moderator") or ply:IsAdmin() or ply:IsSuperAdmin() end,
- CustomCheckFailMsg = "Uniquement pour les VIP!"
- })
- TEAM_SWATCH = DarkRP.createJob("Chef SWAT VIP", {
- color = Color(143, 90, 56, 255),
- model = {"models/player/swat.mdl"},
- description = [[Vous etes le chef des SWAT ordonnez vos troupes au coeur de l'action]],
- weapons = {"arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker","weapon_arc_atmcard","cw_glock","weapon_fists","weapon_stungun"},
- command = "swatch",
- max = 1,
- salary = 500,
- admin = 0,
- vote = true,
- hasLicense = false,
- customCheck = function(ply) return CLIENT or ply:IsUserGroup("vip") or ply:IsUserGroup("moderator") or ply:IsAdmin() or ply:IsSuperAdmin() end,
- CustomCheckFailMsg = "Uniquement pour les VIP!"
- })
- TEAM_FBI = DarkRP.createJob("FBI", {
- color = Color(0, 255, 0, 255),
- model = {
- "models/fbi_pack/fbi_01.mdl",
- "models/fbi_pack/fbi_02.mdl",
- "models/fbi_pack/fbi_04.mdl",
- "models/fbi_pack/fbi_05.mdl"
- },
- description = [[Vous etes un homme du FBI enquetez sur les meutres]],
- weapons = {"arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker","weapon_arc_atmcard","m9k_colt1911","weapon_cuff_police","weapon_stungun"},
- command = "fbi",
- max = 4,
- salary = 300,
- admin = 0,
- vote = true,
- hasLicense = false
- })
- TEAM_BAC = DarkRP.createJob("BAC VIP", {
- color = Color(20, 0, 20, 255),
- model = {
- "models/player/aiden_pearce.mdl",
- "models/the walking dead survival instincts/merle_dixon.mdl",
- "models/player/korka007/chloe.mdl",
- "models/rottweiler/freeman.mdl",
- "models/player/faith.mdl"
- },
- description = [[Vous faites partie de la BAC faites semblant que vous etes un citoyen.]],
- weapons = {"arrest_stick", "unarrest_stick", "stunstick", "door_ram","weaponchecker","weapon_arc_atmcard","cw_glock","weapon_fists","weapon_cuff_police","weapon_stungun"},
- command = "bac",
- max = 5,
- salary = 450,
- admin = 0,
- vote = false,
- hasLicense = false,
- customCheck = function(ply) return CLIENT or ply:IsUserGroup("vip") or ply:IsUserGroup("moderator") or ply:IsAdmin() or ply:IsSuperAdmin() end,
- CustomCheckFailMsg = "Uniquement pour les VIP!"
- })
- 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_BRAC = TEAM_BRAC or -1
- TEAM_MEC = TEAM_MEC or -1
- TEAM_AGSECU = TEAM_AGSECU or -1
- TEAM_HIT = TEAM_HIT or -1
- TEAM_SWAT = TEAM_SWAT or -1
- TEAM_SWATCH = TEAM_SWATCH or -1
- TEAM_FBI = TEAM_FBI or -1
- TEAM_BAC = TEAM_BAC or -1
- TEAM_CHI = TEAM_CHI or -1
- TEAM_MAF = TEAM_MAF or -1
- TEAM_CMAF = TEAM_CMAF or -1
- TEAM_DEAL = TEAM_DEAL or -1
- TEAM_PSYC = TEAM_PSYC or -1
- TEAM_YAK = TEAM_YAK or -1
- TEAM_DJ = TEAM_DJ 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("Gouvernement", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
- AddDoorGroup("Vendeur d'armes", TEAM_GUN)
- /*
- --------------------------------------------------------
- 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!
- GAMEMODE:AddGroupChat(List of team variables separated by comma)
- or
- GAMEMODE:AddGroupChat(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.
- */
- GAMEMODE:AddGroupChat(function(ply) return ply:isCP() end)
- GAMEMODE:AddGroupChat(TEAM_MOB, TEAM_GANG)
- /*---------------------------------------------------------------------------
- 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_SWAT] = true,
- [TEAM_SWATCH] = true,
- [TEAM_FBI] = true,
- [TEAM_BAC] = true,
- }
- /*---------------------------------------------------------------------------
- Enable hitman goodies on this team
- ---------------------------------------------------------------------------*/
- DarkRP.addHitmanTeam(TEAM_HIT)
- /*---------------------------------------------------------------------------
- Default demote groups
- ---------------------------------------------------------------------------*/
- DarkRP.createDemoteGroup("Cops", {TEAM_POLICE, TEAM_CHIEF})
- DarkRP.createDemoteGroup("Gangsters", {TEAM_GANG, TEAM_MOB})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement