Nos partenaires et nous-mêmes utilisons différentes technologies, telles que les cookies, pour personnaliser les contenus et les publicités, proposer des fonctionnalités sur les réseaux sociaux et analyser le trafic. Merci de cliquer sur le bouton ci-dessous pour donner votre accord. Vous pouvez changer d’avis et modifier vos choix à tout moment. Informations RGPD
-- 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 = [[Vous vivez votre vie normalement.]], weapons = {}, command = "citizen", max = 0, salary = 400, admin = 0, vote = false, hasLicense = false, candemote = false }) TEAM_Rebelle = DarkRP.createJob("Rebelle", { color = Color(75, 75, 50, 255), model = { "models/player/cell10.mdl", "models/player/cell09.mdl", }, description = [[Vous vous battez contre les règles du maire.]], weapons = {}, command = "rebelle", max = 0, salary = 400, admin = 0, vote = false, hasLicense = false, candemote = false }) TEAM_ChefRebelle = DarkRP.createJob("Chef des Rebelles", { color = Color(75, 75, 50, 255), model = { "models/player/cell12.mdl",}, description = [[Vous dirigez les rebelles.]], weapons = {"fas2_machete"}, command = "chefrebelle", max = 1, salary = 1150, 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"}, description = [[Vous devez proteger la ville.]], weapons = {"arrest_stick", "unarrest_stick", "fas2_deagle", "door_ram", "weaponchecker"}, command = "police", max = 0, salary = 1660, admin = 0, vote = false, hasLicense = true, }) TEAM_GUN = DarkRP.createJob("Vendeur d'armes", { color = Color(255, 140, 0, 255), model = "models/player/monk.mdl", description = [[Vendez des armes légament ou illégalement !]], weapons = {}, command = "gundealer", max = 2, salary = 0, admin = 0, vote = true, hasLicense = false }) TEAM_MEDIC = DarkRP.createJob("Medecin", { color = Color(47, 79, 79, 255), model = "models/humans/group01/scrub1a.mdl", description = [[Soignez les gens !]], weapons = {"med_kit"}, command = "medic", max = 3, salary = 2000, admin = 0, vote = false, hasLicense = false, medic = true }) TEAM_CHIEF = DarkRP.createJob("Chef Policier", { color = Color(20, 20, 255, 255), model = "npc_cell07F", description = [[Vous êtes le chef de la police.]], weapons = {"arrest_stick", "unarrest_stick", "fas2_mp5k", "fas2_ragingbull", "stunstick", "door_ram", "weaponchecker"}, command = "chief", max = 1, salary = 1850, admin = 0, vote = true, hasLicense = true, chief = true, }) TEAM_MAYOR = DarkRP.createJob("Maire", { color = Color(150, 20, 20, 255), model = "models/player/breen.mdl", description = [[Vous devez diriger la ville.]], weapons = {}, command = "mayor", max = 1, salary = 3500, admin = 0, vote = true, hasLicense = true, mayor = true }) 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 /* -------------------------------------------------------- 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("Cops and Mayor only", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR) AddDoorGroup("Gundealer only", 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, } /*--------------------------------------------------------------------------- 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})