Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TEAM_CITIZEN = DarkRP.createJob("Citoyen", {
- color = Color(17, 226, 61, 255),
- model = {
- "models/player/Group01/female_01.mdl",
- "models/player/Group01/female_06.mdl",
- "models/player/Group01/male_01.mdl",
- "models/player/Group01/male_02.mdl",
- "models/player/Group01/male_04.mdl",
- "models/player/Group01/male_06.mdl",
- "models/player/Group02/male_06.mdl"
- },
- description = [[Le citoyen a le droit de tout faire dans la ville]],
- weapons = {"weapon_adv_keys", "weapon_fists", "weapon_physgun", "gmod_tool", "weapon_physcannon", "idcard", "itemstore_pickup"},
- command = "citizen",
- max = 0,
- salary = 30,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = false,
- category = "Civil",
- skins = {4,5,6},
- bodygroups = {
- ["torso"] = {0,2,3},
- ["legs"] = {0,1,2,3,4,5},
- ["beanies"] = {0,1,2},
- ["glasses"] = {0,1},
- },
- PlayerSpawn = function(ply)
- ply:SetMaxHealth(100)
- ply:SetHealth(100)
- ply:SetArmor(0)
- end
- })
- TEAM_GUN = DarkRP.createJob("Vendeur d'armes", {
- color = Color(234, 184, 18, 255),
- model = {"models/player/monk.mdl"},
- description = [[Le vendeur d'armes doit rester dans sa boutique pour vendre ses armes]],
- weapons = {"weapon_adv_keys", "weapon_fists", "weapon_physgun", "gmod_tool", "weapon_physcannon", "idcard", "itemstore_pickup"},
- command = "gun",
- max = 2,
- salary = 45,
- admin = 0,
- vote = false,
- hasLicense = true,
- candemote = false,
- category = "Vendeur",
- PlayerSpawn = function(ply)
- ply:SetMaxHealth(100)
- ply:SetHealth(100)
- ply:SetArmor(0)
- end,
- PlayerDeath = function(ply, weapon, killer)
- ply:teamBan()
- ply:changeTeam(GAMEMODE.DefaultTeam, true)
- DarkRP.notifyAll(0, 4, "")
- end
- })
- TEAM_MEDIC = DarkRP.createJob("Medecin", {
- color = Color(255, 255, 255, 255),
- model = {
- "models/player/portal/male_02_medic.mdl",
- "models/player/portal/male_04_medic.mdl"
- },
- description = [[Le médecin doit soigner et aider les malades ou blessés]],
- weapons = {"weapon_adv_keys", "weapon_fists", "weapon_physgun", "gmod_tool", "weapon_physcannon", "weapon_medkit", "idcard", "itemstore_pickup"},
- command = "medic",
- max = 3,
- salary = 45,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = false,
- category = "Civil",
- PlayerSpawn = function(ply)
- ply:SetMaxHealth(100)
- ply:SetHealth(100)
- ply:SetArmor(100)
- end,
- PlayerDeath = function(ply, weapon, killer)
- ply:teamBan()
- ply:changeTeam(GAMEMODE.DefaultTeam, true)
- DarkRP.notifyAll(0, 4, "")
- end
- })
- TEAM_MAYOR = DarkRP.createJob("Maire", {
- color = Color(234, 18, 18, 255),
- model = {"models/player/breen.mdl"},
- description = [[Le maire doit diriger et instaurer un reglement à la ville]],
- weapons = {"weapon_adv_keys", "weapon_fists", "weapon_physgun", "gmod_tool", "weapon_physcannon", "idcard", "itemstore_pickup"},
- command = "mayor",
- max = 1,
- salary = 100,
- admin = 0,
- vote = false,
- hasLicense = true,
- candemote = false,
- category = "Gouvernement",
- mayor = true,
- PlayerSpawn = function(ply)
- ply:SetMaxHealth(100)
- ply:SetHealth(100)
- ply:SetArmor(100)
- end,
- PlayerDeath = function(ply, weapon, killer)
- ply:teamBan()
- ply:changeTeam(GAMEMODE.DefaultTeam, true)
- DarkRP.notifyAll(0, 4, "Le maire est mort.")
- end
- })
- TEAM_COOK = DarkRP.createJob("Cuisinier", {
- color = Color(204, 237, 167, 255),
- model = {
- "models/fearless/chef1.mdl",
- "models/fearless/chef2.mdl"
- },
- description = [[Le cuisinier doit être dans son restaurant pour faire de la nourriture et la vendre]],
- weapons = {"weapon_adv_keys", "weapon_fists", "weapon_physgun", "gmod_tool", "weapon_physcannon", "idcard", "itemstore_pickup"},
- command = "cook",
- max = 2,
- salary = 45,
- admin = 0,
- vote = false,
- hasLicense = false,
- candemote = false,
- category = "Civil",
- cook = true,
- PlayerSpawn = function(ply)
- ply:SetMaxHealth(100)
- ply:SetHealth(100)
- ply:SetArmor(0)
- end,
- PlayerDeath = function(ply, weapon, killer)
- ply:teamBan()
- ply:changeTeam(GAMEMODE.DefaultTeam, true)
- DarkRP.notifyAll(0, 4, "")
- end
- })
- TEAM_TOWER = DarkRP.createJob("Depanneur", {
- color = Color(255, 165, 51, 255),
- model = "models/player/mechanic.mdl",
- description = [[Vous avez la responsabilité de tout les véhicules.]],
- weapons = {"tow_attach", "weapon_adv_keys", "weapon_fists", "weapon_physgun", "gmod_tool", "weapon_physcannon", "idcard", "vc_wrench", "itemstore_pickup"},
- command = "tower",
- max = 2,
- salary = 45,
- admin = 0,
- vote = false,
- hasLicense = false
- })
- TEAM_CORP = DarkRP.createJob("Agent de Securité", {
- color = Color(2, 2, 2, 255),
- model = {"models/player/smith.mdl"},
- description = [[L'agent de securité sont rôle est de proteger la personne pour qui il travaille]],
- weapons = {"weapon_adv_keys", "weapon_fists", "weapon_physgun", "gmod_tool", "weapon_physcannon", "idcard", "weaponchecker", "itemstore_pickup"},
- command = "ads",
- max = 4,
- salary = 50,
- admin = 0,
- vote = false,
- hasLicense = true,
- candemote = false,
- PlayerSpawn = function(ply)
- ply:SetMaxHealth(100)
- ply:SetHealth(100)
- ply:SetArmor(100)
- end,
- PlayerDeath = function(ply, weapon, killer)
- ply:teamBan()
- ply:changeTeam(GAMEMODE.DefaultTeam, true)
- DarkRP.notifyAll(0, 4, "")
- end
- })
- TEAM_POLICE = DarkRP.createJob("Policier", {
- color = Color(19, 8, 173, 255),
- model = {
- "models/player/portal/f_police.mdl",
- "models/player/portal/f_police2.mdl",
- "models/player/portal/f_police3.mdl",
- "models/player/portal/f_police5.mdl",
- "models/player/portal/f_police6.mdl",
- "models/player/portal/f_police7.mdl"
- },
- description = [[Les policiers sont la pour faire régner la paix dans la ville.]],
- weapons = {"weapon_adv_keys", "weapon_physgun", "gmod_tool", "weapon_physcannon", "idcard", "weaponchecker", "weapon_r_handcuffs", "arrest_stick", "pass_police_nationale", "stungun", "fas2_p226", "itemstore_pickup", "weapon_r_handcuffs"},
- command = "flic",
- max = 0,
- salary = 50,
- admin = 0,
- vote = false,
- hasLicense = true,
- candemote = false,
- chief = true,
- ammo = {
- ["pistol"] = 50
- },
- PlayerSpawn = function(ply)
- ply:SetMaxHealth(100)
- ply:SetHealth(100)
- ply:SetArmor(100)
- end,
- PlayerDeath = function(ply, weapon, killer)
- ply:teamBan()
- ply:changeTeam(GAMEMODE.DefaultTeam, true)
- DarkRP.notifyAll(0, 4, "")
- end,
- customCheck = function(ply)--remplacer 7200 par le nombre de seconde
- if ply:GetUTimeTotalTime() >= 108000 then
- return true
- end
- end
- CustomCheckFailMsg = "Ce métier est disponible dès 30 heures de jeu",
- })
- TEAM_RAID = DarkRP.createJob("RAID", {
- color = Color(28, 38, 196, 255),
- model = {
- "models/player/raid/raid_01.mdl",
- "models/player/raid/raid_02.mdl",
- "models/player/raid/raid_03.mdl",
- "models/player/raid/raid_04.mdl",
- "models/player/raid/raid_05.dml",
- "models/player/raid/raid_06.mdl"
- },
- description = [[Le RAID doit être present lors d'interventions tels que braquages, prise d'otages mais pas pour surveiller la ville]],
- weapons = {"weapon_adv_keys", "weapon_physgun", "gmod_tool", "weapon_physcannon", "idcard", "weaponchecker", "pass_police_nationale", "stungun", "fas2_m4a1", "itemstore_pickup", "weapon_r_handcuffs"},
- command = "raid",
- max = 4,
- salary = 60,
- admin = 0,
- vote = false,
- hasLicense = true,
- candemote = false,
- PlayerSpawn = function(ply)
- ply:SetMaxHealth(100)
- ply:SetHealth(100)
- ply:SetArmor(150)
- end,
- PlayerDeath = function(ply, weapon, killer)
- ply:teamBan()
- ply:changeTeam(GAMEMODE.DefaultTeam, true)
- DarkRP.notifyAll(0, 4, "")
- end,
- customCheck = function(ply)--remplacer 7200 par le nombre de seconde
- if ply:GetUTimeTotalTime() >= 180000 then
- return true
- end
- end
- CustomCheckFailMsg = "Ce métier est disponible dès 50 heures de jeu",
- })
- -- 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("Policier et gourvenement uniquement", TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
- AddDoorGroup("Vendeur d'arme uniquement", 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)
- -- 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_MOB)
- -- 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,
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement