Traité Jobs probléme

capter

Master 🏆
Level 2

Torrents Stats

Messages
85
J'aime
4
Trophées
195
Inscrit
20 Octobre 2017
Bonjour quand je rejoins mon serveur cela me dit sa dans la console
04340821b84451d3c5da48a5547fddd8.png






Voici mon Job.lua
-----------------------------------------------------
TEAM_CITIZEN = DarkRP.createJob("Citoyen", {
color = Color(20, 150, 20, 90),
model = {"models/humans/modern/female_01.mdl", "models/humans/modern/female_02.mdl", "models/humans/modern/female_03.mdl", "models/humans/modern/female_04.mdl", "models/humans/modern/female_06.mdl", "models/humans/modern/female_07.mdl", "models/humans/modern/male_01_01.mdl", "models/humans/modern/male_01_02.mdl", "models/humans/modern/male_01_03.mdl", "models/humans/modern/male_02_01.mdl", "models/humans/modern/male_02_02.mdl", "models/humans/modern/male_02_03.mdl", "models/humans/modern/male_03_01.mdl", "models/humans/modern/male_03_02.mdl", "models/humans/modern/male_03_03.mdl", "models/humans/modern/male_03_04.mdl", "models/humans/modern/male_03_05.mdl", "models/humans/modern/male_03_05.mdl", "models/humans/modern/male_03_06.mdl", "models/humans/modern/male_03_07.mdl", "models/humans/modern/male_04_01.mdl", "models/humans/modern/male_04_02.mdl", "models/humans/modern/male_04_03.mdl", "models/humans/modern/male_04_04.mdl", "models/humans/modern/male_05_01.mdl", "models/humans/modern/male_05_02.mdl", "models/humans/modern/male_05_03.mdl", "models/humans/modern/male_05_04.mdl", "models/humans/modern/male_05_05.mdl", "models/humans/modern/male_06_01.mdl", "models/humans/modern/male_06_02.mdl", "models/humans/modern/male_06_03.mdl", "models/humans/modern/male_06_04.mdl", "models/humans/modern/male_06_05.mdl", "models/humans/modern/male_07_01.mdl", "models/humans/modern/male_07_02.mdl", "models/humans/modern/male_07_03.mdl", "models/humans/modern/male_07_04.mdl", "models/humans/modern/male_07_05.mdl", "models/humans/modern/male_07_06.mdl", "models/humans/modern/male_08_01.mdl", "models/humans/modern/male_08_02.mdl", "models/humans/modern/male_08_03.mdl", "models/humans/modern/male_08_04.mdl", "models/humans/modern/male_09_01.mdl", "models/humans/modern/male_09_02.mdl", "models/humans/modern/male_09_03.mdl", "models/humans/modern/male_09_04.mdl"},
description = [[Vous êtes un honnête citoyen !]],
weapons = {},
command = "citizen",
max = 0,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
category = "Legal"
})

TEAM_TAXI = DarkRP.createJob("Chauffeur de Taxi", {
color = Color(20, 150, 20, 90),
model = {"models/humans/modern/female_01.mdl", "models/humans/modern/female_02.mdl", "models/humans/modern/female_03.mdl", "models/humans/modern/female_04.mdl", "models/humans/modern/female_06.mdl", "models/humans/modern/female_07.mdl", "models/humans/modern/male_01_01.mdl", "models/humans/modern/male_01_02.mdl", "models/humans/modern/male_01_03.mdl", "models/humans/modern/male_02_01.mdl", "models/humans/modern/male_02_02.mdl", "models/humans/modern/male_02_03.mdl", "models/humans/modern/male_03_01.mdl", "models/humans/modern/male_03_02.mdl", "models/humans/modern/male_03_03.mdl", "models/humans/modern/male_03_04.mdl", "models/humans/modern/male_03_05.mdl", "models/humans/modern/male_03_05.mdl", "models/humans/modern/male_03_06.mdl", "models/humans/modern/male_03_07.mdl", "models/humans/modern/male_04_01.mdl", "models/humans/modern/male_04_02.mdl", "models/humans/modern/male_04_03.mdl", "models/humans/modern/male_04_04.mdl", "models/humans/modern/male_05_01.mdl", "models/humans/modern/male_05_02.mdl", "models/humans/modern/male_05_03.mdl", "models/humans/modern/male_05_04.mdl", "models/humans/modern/male_05_05.mdl", "models/humans/modern/male_06_01.mdl", "models/humans/modern/male_06_02.mdl", "models/humans/modern/male_06_03.mdl", "models/humans/modern/male_06_04.mdl", "models/humans/modern/male_06_05.mdl", "models/humans/modern/male_07_01.mdl", "models/humans/modern/male_07_02.mdl", "models/humans/modern/male_07_03.mdl", "models/humans/modern/male_07_04.mdl", "models/humans/modern/male_07_05.mdl", "models/humans/modern/male_07_06.mdl", "models/humans/modern/male_08_01.mdl", "models/humans/modern/male_08_02.mdl", "models/humans/modern/male_08_03.mdl", "models/humans/modern/male_08_04.mdl", "models/humans/modern/male_09_01.mdl", "models/humans/modern/male_09_02.mdl", "models/humans/modern/male_09_03.mdl", "models/humans/modern/male_09_04.mdl"},
description = [[Vous êtes un chauffeur de taxi !]],
weapons = {},
command = "taxidriver",
max = 3,
salary = 120,
admin = 0,
vote = false,
hasLicense = false,
category = "Legal",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_BUS = DarkRP.createJob("Chauffeur de Bus", {
color = Color(20, 150, 20, 90),
model = {"models/humans/modern/female_01.mdl", "models/humans/modern/female_02.mdl", "models/humans/modern/female_03.mdl", "models/humans/modern/female_04.mdl", "models/humans/modern/female_06.mdl", "models/humans/modern/female_07.mdl", "models/humans/modern/male_01_01.mdl", "models/humans/modern/male_01_02.mdl", "models/humans/modern/male_01_03.mdl", "models/humans/modern/male_02_01.mdl", "models/humans/modern/male_02_02.mdl", "models/humans/modern/male_02_03.mdl", "models/humans/modern/male_03_01.mdl", "models/humans/modern/male_03_02.mdl", "models/humans/modern/male_03_03.mdl", "models/humans/modern/male_03_04.mdl", "models/humans/modern/male_03_05.mdl", "models/humans/modern/male_03_05.mdl", "models/humans/modern/male_03_06.mdl", "models/humans/modern/male_03_07.mdl", "models/humans/modern/male_04_01.mdl", "models/humans/modern/male_04_02.mdl", "models/humans/modern/male_04_03.mdl", "models/humans/modern/male_04_04.mdl", "models/humans/modern/male_05_01.mdl", "models/humans/modern/male_05_02.mdl", "models/humans/modern/male_05_03.mdl", "models/humans/modern/male_05_04.mdl", "models/humans/modern/male_05_05.mdl", "models/humans/modern/male_06_01.mdl", "models/humans/modern/male_06_02.mdl", "models/humans/modern/male_06_03.mdl", "models/humans/modern/male_06_04.mdl", "models/humans/modern/male_06_05.mdl", "models/humans/modern/male_07_01.mdl", "models/humans/modern/male_07_02.mdl", "models/humans/modern/male_07_03.mdl", "models/humans/modern/male_07_04.mdl", "models/humans/modern/male_07_05.mdl", "models/humans/modern/male_07_06.mdl", "models/humans/modern/male_08_01.mdl", "models/humans/modern/male_08_02.mdl", "models/humans/modern/male_08_03.mdl", "models/humans/modern/male_08_04.mdl", "models/humans/modern/male_09_01.mdl", "models/humans/modern/male_09_02.mdl", "models/humans/modern/male_09_03.mdl", "models/humans/modern/male_09_04.mdl"},
description = [[Vous êtes un chauffeur de bus !]],
weapons = {},
command = "busdriver",
max = 1,
salary = 120,
admin = 0,
vote = false,
hasLicense = false,
category = "Legal",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_HOBO = DarkRP.createJob("Clochard", {
color = Color(20, 150, 20, 90),
model = "models/player/corpse1.mdl",
description = [[Vous n'avez rien dans la vie, vous êtes rien !]],
weapons = {"weapon_bugbait"},
command = "hobo",
max = 6,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Legal",
hobo = true,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_GUN = DarkRP.createJob("Vendeur d'armes", {
color = Color(20, 150, 20, 90),
model = {"models/player/monk.mdl"},
description = [[Vous vendez des armes sous license !]],
weapons = {},
command = "armurierr",
max = 6,
salary = 120,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "Vendeur",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_GUNN = DarkRP.createJob("Vendeur d'armes illégal", {
color = Color(20, 150, 20, 90),
model = {"models/player/guerilla.mdl"},
description = [[Vous vendez des armes sous license !]],
weapons = {},
command = "armurierri",
max = 6,
salary = 120,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "Vendeur",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_COOK = DarkRP.createJob("Cuisinier", {
color = Color(20, 150, 20, 90),
model = {"models/fearless/chef1.mdl"},
description = [[Vous vendez de la nourriture !]],
weapons = {},
command = "cook",
max = 6,
salary = 120,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "Vendeur",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_MEDIC = DarkRP.createJob("Médecin", {
color = Color(20, 150, 20, 90),
model = {"models/player/Group03m/male_01.mdl", "models/player/Group03m/male_02.mdl", "models/player/Group03m/male_03.mdl", "models/player/Group03m/male_04.mdl", "models/player/Group03m/male_05.mdl", "models/player/Group03m/male_06.mdl", "models/player/Group03m/male_07.mdl", "models/player/Group03m/male_08.mdl", "models/player/Group03m/male_09.mdl"},
description = [[Vous êtes un Médecin !]],
weapons = {"med_kit"},
command = "medecinnn",
max = 4,
medic = true,
salary = 500,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "Legal",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_BANK = DarkRP.createJob("Banquier", {
color = Color(20, 150, 20, 90),
model = {"models/player/hostage/hostage_03.mdl", "models/player/hostage/hostage_01.mdl", "models/player/hostage/hostage_02.mdl", "models/player/hostage/hostage_04.mdl"},
description = [[Vous gérez la banque !]],
weapons = {},
command = "banquito",
max = 6,
salary = 1200,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "Legal",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_SECU = DarkRP.createJob("Agent de Sécurité", {
color = Color(20, 150, 20, 90),
model = {"models/player/portal/Male_01_security.mdl", "models/player/portal/Male_02_security.mdl", "models/player/portal/Male_03_security.mdl", "models/player/portal/Male_04_security.mdl", "models/player/portal/Male_05_security.mdl", "models/player/portal/Male_06_security.mdl", "models/player/portal/Male_07_security.mdl", "models/player/portal/Male_08_security.mdl", "models/player/portal/Male_09_security.mdl"},
description = [[Vous êtes un agent de sécurité, et vous travaillez dans le privée !]],
weapons = {"weaponchecker", "stunstick", "stungun"},
command = "secu",
max = 6,
salary = 200,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "Legal",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_TOWER = DarkRP.createJob("Dépanneur", {
color = Color(34, 85, 85, 255),
model = {"models/player/monk.mdl"},
description = [[Vous êtes un dépanneur !]],
weapons = {"vc_wrench"},
command = "depanouze",
max = 4,
salary = 120,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "Legal",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

-- ILLEGAL --
TEAM_HR_CM = DarkRP.createJob("Trafiquant de Meth", {
color = Color(20, 150, 20, 90),
model = {"models/humans/modern/male_01_01.mdl", "models/humans/modern/male_01_02.mdl", "models/humans/modern/male_01_03.mdl", "models/humans/modern/male_02_01.mdl", "models/humans/modern/male_02_02.mdl", "models/humans/modern/male_02_03.mdl", "models/humans/modern/male_03_01.mdl", "models/humans/modern/male_03_02.mdl", "models/humans/modern/male_03_03.mdl", "models/humans/modern/male_03_04.mdl", "models/humans/modern/male_03_05.mdl", "models/humans/modern/male_03_05.mdl", "models/humans/modern/male_03_06.mdl", "models/humans/modern/male_03_07.mdl", "models/humans/modern/male_04_01.mdl", "models/humans/modern/male_04_02.mdl", "models/humans/modern/male_04_03.mdl", "models/humans/modern/male_04_04.mdl", "models/humans/modern/male_05_01.mdl", "models/humans/modern/male_05_02.mdl", "models/humans/modern/male_05_03.mdl", "models/humans/modern/male_05_04.mdl", "models/humans/modern/male_05_05.mdl", "models/humans/modern/male_06_01.mdl", "models/humans/modern/male_06_02.mdl", "models/humans/modern/male_06_03.mdl", "models/humans/modern/male_06_04.mdl", "models/humans/modern/male_06_05.mdl", "models/humans/modern/male_07_01.mdl", "models/humans/modern/male_07_02.mdl", "models/humans/modern/male_07_03.mdl", "models/humans/modern/male_07_04.mdl", "models/humans/modern/male_07_05.mdl", "models/humans/modern/male_07_06.mdl", "models/humans/modern/male_08_01.mdl", "models/humans/modern/male_08_02.mdl", "models/humans/modern/male_08_03.mdl", "models/humans/modern/male_08_04.mdl", "models/humans/modern/male_09_01.mdl", "models/humans/modern/male_09_02.mdl", "models/humans/modern/male_09_03.mdl", "models/humans/modern/male_09_04.mdl}", "models/humans/modern/female_02.mdl", "models/humans/modern/female_03.mdl", "models/humans/modern/female_04.mdl", "models/humans/modern/female_06.mdl", "models/humans/modern/female_07.mdl"},
description = [[Vous êtes un trafiquant de méthaphétamine]],
weapons = {},
command = "amphcook",
max = 3,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "Illegal",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_PSYCHOPATHE = DarkRP.createJob("Psychopathe", {
color = Color(20, 150, 20, 90),
model = {"models/humans/modern/female_01.mdl", "models/humans/modern/female_02.mdl", "models/humans/modern/female_03.mdl", "models/humans/modern/female_04.mdl", "models/humans/modern/female_06.mdl", "models/humans/modern/female_07.mdl", "models/humans/modern/male_01_01.mdl", "models/humans/modern/male_01_02.mdl", "models/humans/modern/male_01_03.mdl", "models/humans/modern/male_02_01.mdl", "models/humans/modern/male_02_02.mdl", "models/humans/modern/male_02_03.mdl", "models/humans/modern/male_03_01.mdl", "models/humans/modern/male_03_02.mdl", "models/humans/modern/male_03_03.mdl", "models/humans/modern/male_03_04.mdl", "models/humans/modern/male_03_05.mdl", "models/humans/modern/male_03_05.mdl", "models/humans/modern/male_03_06.mdl", "models/humans/modern/male_03_07.mdl", "models/humans/modern/male_04_01.mdl", "models/humans/modern/male_04_02.mdl", "models/humans/modern/male_04_03.mdl", "models/humans/modern/male_04_04.mdl", "models/humans/modern/male_05_01.mdl", "models/humans/modern/male_05_02.mdl", "models/humans/modern/male_05_03.mdl", "models/humans/modern/male_05_04.mdl", "models/humans/modern/male_05_05.mdl", "models/humans/modern/male_06_01.mdl", "models/humans/modern/male_06_02.mdl", "models/humans/modern/male_06_03.mdl", "models/humans/modern/male_06_04.mdl", "models/humans/modern/male_06_05.mdl", "models/humans/modern/male_07_01.mdl", "models/humans/modern/male_07_02.mdl", "models/humans/modern/male_07_03.mdl", "models/humans/modern/male_07_04.mdl", "models/humans/modern/male_07_05.mdl", "models/humans/modern/male_07_06.mdl", "models/humans/modern/male_08_01.mdl", "models/humans/modern/male_08_02.mdl", "models/humans/modern/male_08_03.mdl", "models/humans/modern/male_08_04.mdl", "models/humans/modern/male_09_01.mdl", "models/humans/modern/male_09_02.mdl", "models/humans/modern/male_09_03.mdl", "models/humans/modern/male_09_04.mdl"},
description = [[Vous êtes fou !]],
weapons = {"m9k_knife", "scalpel"},
command = "psychopathe",
max = 3,
salary = 100,
admin = 0,
vote = false,
hasLicense = true,
category = "VIP",
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "admin", "modo", "modotest", "helpeur", "vip", "sa"}, ply:GetUserGroup()) end,
CustomCheckFailMsg = "Vous devez être VIP pour prendre ce métier.",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_HACK = DarkRP.createJob("Hackeur", {
color = Color(20, 150, 20, 90),
model = {"models/playermodel/sterling/mr_robot.mdl"},
description = [[ A rediger ]],
weapons = {"weapon_arc_atmhack"},
command = "crackit",
max = 3,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
category = "Illegal",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_GAGE = DarkRP.createJob("Tueur à gage", {
color = Color(20, 150, 20, 90),
model = {"models/vinrax/player/punisher/punisher_tshirt.mdl"},
description = [[Vous tuez contre de l'argent !]],
weapons = {},
command = "gage",
max = 2,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "Illegal",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_VOL = DarkRP.createJob("Voleur", {
color = Color(20, 150, 20, 90),
model = {"models/humans/modern/female_01.mdl", "models/humans/modern/female_02.mdl", "models/humans/modern/female_03.mdl", "models/humans/modern/female_04.mdl", "models/humans/modern/female_06.mdl", "models/humans/modern/female_07.mdl", "models/humans/modern/male_01_01.mdl", "models/humans/modern/male_01_02.mdl", "models/humans/modern/male_01_03.mdl", "models/humans/modern/male_02_01.mdl", "models/humans/modern/male_02_02.mdl", "models/humans/modern/male_02_03.mdl", "models/humans/modern/male_03_01.mdl", "models/humans/modern/male_03_02.mdl", "models/humans/modern/male_03_03.mdl", "models/humans/modern/male_03_04.mdl", "models/humans/modern/male_03_05.mdl", "models/humans/modern/male_03_05.mdl", "models/humans/modern/male_03_06.mdl", "models/humans/modern/male_03_07.mdl", "models/humans/modern/male_04_01.mdl", "models/humans/modern/male_04_02.mdl", "models/humans/modern/male_04_03.mdl", "models/humans/modern/male_04_04.mdl", "models/humans/modern/male_05_01.mdl", "models/humans/modern/male_05_02.mdl", "models/humans/modern/male_05_03.mdl", "models/humans/modern/male_05_04.mdl", "models/humans/modern/male_05_05.mdl", "models/humans/modern/male_06_01.mdl", "models/humans/modern/male_06_02.mdl", "models/humans/modern/male_06_03.mdl", "models/humans/modern/male_06_04.mdl", "models/humans/modern/male_06_05.mdl", "models/humans/modern/male_07_01.mdl", "models/humans/modern/male_07_02.mdl", "models/humans/modern/male_07_03.mdl", "models/humans/modern/male_07_04.mdl", "models/humans/modern/male_07_05.mdl", "models/humans/modern/male_07_06.mdl", "models/humans/modern/male_08_01.mdl", "models/humans/modern/male_08_02.mdl", "models/humans/modern/male_08_03.mdl", "models/humans/modern/male_08_04.mdl", "models/humans/modern/male_09_01.mdl", "models/humans/modern/male_09_02.mdl", "models/humans/modern/male_09_03.mdl", "models/humans/modern/male_09_04.mdl"},
description = [[Vous êtes un voleur avec de nombreux talents !]],
weapons = {"lockpick", "keypad_cracker", "swep_pickpocket"},
command = "volirto",
max = 4,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
category = "Illegal",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_BICRAVE = DarkRP.createJob("Bicraveur", {
color = Color(20, 150, 20, 90),
model = {"models/csgoanarchist2pm.mdl", "models/csgoanarchist1pm.mdl", "models/csgoanarchist3pm.mdl", "models/csgoanarchist4pm.mdl"},
description = [[Vous êtes un bicraveur !]],
weapons = {},
command = "bicrave",
max = 2,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
category = "Vendeur",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

-- GANG --
TEAM_MAF = DarkRP.createJob("Mafieu", {
color = Color(255, 0, 0, 90),
model = {"models/fearless/mafia04.mdl", "models/fearless/mafia02.mdl", "models/fearless/mafia06.mdl", "models/fearless/mafia07.mdl", "models/fearless/mafia09.mdl"},
description = [[ Vous êtes un mafieu !]],
weapons = {},
command = "mafia",
max = 4,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
category = "Illegal",
candemote = true,
PlayerSpawn = function(ply)
ply:SetArmor(50)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_MAFF = DarkRP.createJob("Chef de la mafia", {
color = Color(255, 0, 0, 90),
model = {"models/vito.mdl"},
description = [[Vous êtes le chef de la mafia !]],
weapons = {"keypad_cracker", "lockpick", "weapon_cuff_rope"},
command = "chefmafia",
max = 1,
salary = 1000,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "VIP",
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "admin", "modo", "modotest", "helpeur", "vip", "sa"}, ply:GetUserGroup()) end,
CustomCheckFailMsg = "Vous devez être VIP pour prendre ce métier.",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_BLOODZ = DarkRP.createJob("Bloodz", {
color = Color(255, 0, 0, 90),
model = {"models/player/bloodz/slow_1.mdl", "models/player/bloodz/slow_2.mdl", "models/player/bloodz/slow_3.mdl"},
description = [[ Vous êtes un bloodz !]],
weapons = {},
command = "bloodz",
max = 4,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
category = "Illegal",
candemote = true,
PlayerSpawn = function(ply)
ply:SetArmor(50)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_CHEFBLOODZ = DarkRP.createJob("Chef des Bloodz", {
color = Color(255, 0, 0, 90),
model = {"models/player/bloodz/slow_1.mdl", "models/player/bloodz/slow_2.mdl", "models/player/bloodz/slow_3.mdl"},
description = [[Vous êtes le chef des Bloodz !]],
weapons = {"keypad_cracker", "lockpick", "weapon_cuff_rope"},
command = "chefbloodz",
max = 1,
salary = 1000,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "VIP",
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "admin", "modo", "modotest", "helpeur", "vip", "sa"}, ply:GetUserGroup()) end,
CustomCheckFailMsg = "Vous devez être VIP pour prendre ce métier.",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_CRIPZ = DarkRP.createJob("Cripz", {
color = Color(255, 0, 0, 90),
model = {"models/player/cripz/slow_1.mdl", "models/player/cripz/slow_2.mdl", "models/player/cripz/slow_3.mdl"},
description = [[ Vous êtes un cripz !]],
weapons = {},
command = "cripz",
max = 4,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
category = "Illegal",
candemote = true,
PlayerSpawn = function(ply)
ply:SetArmor(50)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_CHEFCRIPZ = DarkRP.createJob("Chef des Cripz", {
color = Color(255, 0, 0, 90),
model = {"models/player/cripz/slow_1.mdl", "models/player/cripz/slow_2.mdl", "models/player/cripz/slow_3.mdl"},
description = [[Vous êtes le chef des Cripz !]],
weapons = {"keypad_cracker", "lockpick", "weapon_cuff_rope"},
command = "chefcripz",
max = 1,
salary = 1000,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "VIP",
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "admin", "modo", "modotest", "helpeur", "vip", "sa"}, ply:GetUserGroup()) end,
CustomCheckFailMsg = "Vous devez être VIP pour prendre ce métier.",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_YAKUZA = DarkRP.createJob("Yakuza", {
color = Color(255, 0, 0, 90),
model = {"models/SD/Players/[soy_brawler]-head_brawler_dbs.mdl", "models/SD/Players/[soy_quick]-head_quick_soy.mdl", "models/SD/Players/[soy_striker]-head_striker_soy.mdl"},
description = [[ Vous êtes un Yakuza !]],
weapons = {},
command = "yakuza",
max = 4,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
category = "Illegal",
candemote = true,
PlayerSpawn = function(ply)
ply:SetArmor(50)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_CHEFYAKUZA = DarkRP.createJob("Chef des Yakuza", {
color = Color(255, 0, 0, 90),
model = {"models/SD/Players/[soy_grappler].mdl"},
description = [[Vous êtes le chef des Yakuza !]],
weapons = {"keypad_cracker", "lockpick", "weapon_cuff_rope"},
command = "chefyakuza",
max = 1,
salary = 1000,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "VIP",
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "admin", "modo", "modotest", "helpeur", "vip", "sa"}, ply:GetUserGroup()) end,
CustomCheckFailMsg = "Vous devez être VIP pour prendre ce métier.",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

-- GOUVERNEMENT --
TEAM_MAYOR = DarkRP.createJob("Maire", {
color = Color(0, 97, 255, 90),
model = {"models/player/breen.mdl", "models/player/gman_high.mdl"},
description = [[Vous êtes le Maire !]],
weapons = {"weaponchecker", "door_ram"},
command = "maire",
max = 1,
salary = 3000,
admin = 0,
vote = true,
hasLicense = true,
mayor = true,
category = "Gouvernement",
hasRadio = true,
PlayerSpawn = function(ply)
ply:SetArmor(250)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_GUARDD = DarkRP.createJob("Garde du Maire", {
color = Color(0, 97, 255, 90),
model = {"models/player/smith.mdl"},
description = [[Vous êtes le garde du Maire, sa vie est plus importante que la votre !]],
weapons = {"weaponchecker", "stunstick", "m9k_m416", "m9k_remington870", "weapon_cuff_police", "stungun"},
command = "mairegar",
max = 4,
salary = 1200,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
hasRadio = true,
category = "Gouvernement",
PlayerSpawn = function(ply)
ply:SetArmor(250)
end,
customCheck = function(ply) return team.NumPlayers(TEAM_MAYOR) == 1 end,
CustomCheckFailMsg = "Il te faut un président en vie pour devenir garde.",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_SECRE = DarkRP.createJob("Secrétaire du Maire", {
color = Color(0, 97, 255, 90),
model = {"models/player/mossman.mdl"},
description = [[Vous êtes la secrétaire du Maire !]],
weapons = {"stungun", "weaponchecker", "stunstick"},
command = "secreto",
max = 1,
salary = 1950,
admin = 0,
vote = false,
hasRadio = true,
hasLicense = true,
candemote = true,
category = "Gouvernement",
PlayerSpawn = function(ply)
ply:SetArmor(150)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

-- POLICE --
TEAM_BAC = DarkRP.createJob("BAC", {
color = Color(20, 150, 20, 90),
model = {"models/humans/modern/female_01.mdl", "models/humans/modern/female_02.mdl", "models/humans/modern/female_03.mdl", "models/humans/modern/female_04.mdl", "models/humans/modern/female_06.mdl", "models/humans/modern/female_07.mdl", "models/humans/modern/male_01_01.mdl", "models/humans/modern/male_01_02.mdl", "models/humans/modern/male_01_03.mdl", "models/humans/modern/male_02_01.mdl", "models/humans/modern/male_02_02.mdl", "models/humans/modern/male_02_03.mdl", "models/humans/modern/male_03_01.mdl", "models/humans/modern/male_03_02.mdl", "models/humans/modern/male_03_03.mdl", "models/humans/modern/male_03_04.mdl", "models/humans/modern/male_03_05.mdl", "models/humans/modern/male_03_05.mdl", "models/humans/modern/male_03_06.mdl", "models/humans/modern/male_03_07.mdl", "models/humans/modern/male_04_01.mdl", "models/humans/modern/male_04_02.mdl", "models/humans/modern/male_04_03.mdl", "models/humans/modern/male_04_04.mdl", "models/humans/modern/male_05_01.mdl", "models/humans/modern/male_05_02.mdl", "models/humans/modern/male_05_03.mdl", "models/humans/modern/male_05_04.mdl", "models/humans/modern/male_05_05.mdl", "models/humans/modern/male_06_01.mdl", "models/humans/modern/male_06_02.mdl", "models/humans/modern/male_06_03.mdl", "models/humans/modern/male_06_04.mdl", "models/humans/modern/male_06_05.mdl", "models/humans/modern/male_07_01.mdl", "models/humans/modern/male_07_02.mdl", "models/humans/modern/male_07_03.mdl", "models/humans/modern/male_07_04.mdl", "models/humans/modern/male_07_05.mdl", "models/humans/modern/male_07_06.mdl", "models/humans/modern/male_08_01.mdl", "models/humans/modern/male_08_02.mdl", "models/humans/modern/male_08_03.mdl", "models/humans/modern/male_08_04.mdl", "models/humans/modern/male_09_01.mdl", "models/humans/modern/male_09_02.mdl", "models/humans/modern/male_09_03.mdl", "models/humans/modern/male_09_04.mdl"},
description = [[Vous êtes un policier en civil !]],
weapons = {"door_ram", "weaponchecker", "m9k_deagle", "pass_police_nationale", "weapon_cuff_police", "stungun", "stunstick", "opt_arrest", "unopt_arrest"},
command = "bacb",
max = 6,
salary = 300,
hasRadio = true,
admin = 0,
vote = false,
hasLicense = false,
PlayerSpawn = function(ply)
ply:SetArmor(120)
end,
category = "Gouvernement",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_POLICE = DarkRP.createJob("Policier", {
color = Color(0, 97, 255, 90),
model = {"models/player/portal/f_police2.mdl", "models/player/portal/f_police.mdl", "models/player/portal/f_police3.mdl", "models/player/portal/f_police4.mdl", "models/player/portal/f_police5.mdl", "models/player/portal/f_police6.mdl", "models/player/portal/f_police7.mdl", "models/player/portal/f_police_armor.mdl", "models/player/portal/f_police2_armor.mdl", "models/player/portal/f_police3_armor.mdl", "models/player/portal/f_police4_armor.mdl", "models/player/portal/f_police5_armor.mdl", "models/player/portal/f_police6_armor.mdl", "models/player/portal/f_police7_armor.mdl"},
description = [[Vous êtes la loi et l'ordre !]],
weapons = {"m9k_usp", "door_ram", "weaponchecker", "m9k_mp5sd", "pass_police_nationale", "weapon_cuff_police", "stungun", "stunstick", "opt_arrest", "unopt_arrest"},
command = "flic",
max = 10,
salary = 450,
admin = 0,
vote = false,
hasLicense = true,
hasRadio = true,
PlayerSpawn = function(ply)
ply:SetArmor(150)
end,
category = "Gouvernement",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_DOUANE = DarkRP.createJob("Douane", {
color = Color(0, 97, 255, 90),
model = {"models/player/portal/f_police2.mdl", "models/player/portal/f_police.mdl", "models/player/portal/f_police3.mdl", "models/player/portal/f_police4.mdl", "models/player/portal/f_police5.mdl", "models/player/portal/f_police6.mdl", "models/player/portal/f_police7.mdl", "models/player/portal/f_police_armor.mdl", "models/player/portal/f_police2_armor.mdl", "models/player/portal/f_police3_armor.mdl", "models/player/portal/f_police4_armor.mdl", "models/player/portal/f_police5_armor.mdl", "models/player/portal/f_police6_armor.mdl", "models/player/portal/f_police7_armor.mdl"},
description = [[Vous gèrer chaque convois et chaque routes !]],
weapons = {"m9k_usp", "door_ram", "weaponchecker", "pass_police_nationale", "weapon_cuff_police", "stungun", "vc_spikestrip_wep", "vc_wrench", "stunstick", "opt_arrest", "unopt_arrest"},
command = "douane",
max = 6,
salary = 300,
admin = 0,
vote = false,
hasLicense = true,
hasRadio = true,
PlayerSpawn = function(ply)
ply:SetArmor(90)
end,
category = "Gouvernement",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_CHIEF = DarkRP.createJob("Commissaire", {
color = Color(0, 97, 255, 90),
model = {"models/portal2/patrol_04.mdl", "models/portal2/patrol_02.mdl", "models/portal2/patrol_05.mdl", "models/portal2/patrol_06.mdl", "models/portal2/patrol_07.mdl", "models/portal2/patrol_08.mdl", "models/portal2/patrol_09.mdl"},
description = [[Vous gérez la police !]],
weapons = {"door_ram", "weaponchecker", "m9k_m416", "m9k_deagle", "pass_police_nationale", "weapon_cuff_police", "stungun", "vc_spikestrip_wep", "vc_wrench", "stunstick", "opt_arrest", "unopt_arrest", "prokeypadcracker"},
command = "chief",
max = 2,
salary = 1200,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
hasRadio = true,
PlayerSpawn = function(ply)
ply:SetArmor(250)
ply:SetHealth(100)
end,
chief = true,
category = "VIP",
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "admin", "modo", "modotest", "helpeur", "vip", "sa"}, ply:GetUserGroup()) end,
CustomCheckFailMsg = "Vous devez être VIP pour prendre ce métier.",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_GIGN = DarkRP.createJob("GIGN", {
color = Color(0, 97, 255, 90),
model = {"models/player/RAID/RAID_04.mdl", "models/player/RAID/RAID_01.mdl", "models/player/RAID/RAID_02.mdl", "models/player/RAID/RAID_03.mdl", "models/player/RAID/RAID_05.mdl", "models/player/RAID/RAID_06.mdl", "models/player/RAID/RAID_07.mdl"},
description = [[Vous êtes une unité d'élite !]],
weapons = {"door_ram", "weaponchecker", "m9k_mp7", "m9k_jackhammer", "pass_police_nationale", "weapon_cuff_police", "weapon_riotshield", "stungun", "stunstick", "opt_arrest", "unopt_arrest"},
command = "gign",
max = 6,
salary = 500,
admin = 0,
vote = false,
hasLicense = true,
hasRadio = true,
PlayerSpawn = function(ply)
ply:SetArmor(250)
end,
category = "VIP",
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "admin", "modo", "modotest", "helpeur", "vip", "sa"}, ply:GetUserGroup()) end,
CustomCheckFailMsg = "Vous devez être VIP pour prendre ce métier.",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_MEDICGIGN = DarkRP.createJob("Médecin du GIGN", {
color = Color(0, 97, 255, 90),
description = [[Vous êtes le médecin du GIGN !]],
model = {"models/player/RAID/RAID_04.mdl", "models/player/RAID/RAID_01.mdl", "models/player/RAID/RAID_02.mdl", "models/player/RAID/RAID_03.mdl", "models/player/RAID/RAID_05.mdl", "models/player/RAID/RAID_06.mdl", "models/player/RAID/RAID_07.mdl"},
weapons = {"door_ram", "weaponchecker", "m9k_mp7", "m9k_jackhammer", "med_kit", "pass_police_nationale", "weapon_cuff_police", "weapon_riotshield", "stungun", "stunstick", "opt_arrest", "unopt_arrest"},
command = "medigign",
max = 2,
salary = 550,
admin = 0,
vote = false,
hasLicense = true,
hasRadio = true,
PlayerSpawn = function(ply)
ply:SetArmor(200)
end,
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "admin", "modo", "modotest", "helpeur", "vip", "sa"}, ply:GetUserGroup()) end,
CustomCheckFailMsg = "Vous devez être VIP pour prendre ce métier.",
category = "VIP",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_SNIPERG = DarkRP.createJob("Sniper du GIGN", {
color = Color(0, 97, 255, 90),
model = {"models/player/RAID/RAID_04.mdl", "models/player/RAID/RAID_01.mdl", "models/player/RAID/RAID_02.mdl", "models/player/RAID/RAID_03.mdl", "models/player/RAID/RAID_05.mdl", "models/player/RAID/RAID_06.mdl", "models/player/RAID/RAID_07.mdl"},
description = [[Vous êtes le sniper du GIGN !]],
weapons = {"m9k_m98b", "door_ram", "weaponchecker", "pass_police_nationale", "weapon_cuff_police", "stungun", "stunstick", "opt_arrest", "unopt_arrest", "sa"},
command = "snipergign",
max = 2,
salary = 350,
admin = 0,
vote = false,
hasLicense = true,
hasRadio = true,
PlayerSpawn = function(ply)
ply:SetArmor(150)
end,
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "admin", "modo", "modotest", "helpeur", "vip", "sa"}, ply:GetUserGroup()) end,
CustomCheckFailMsg = "Vous devez être VIP pour prendre ce métier.",
category = "VIP",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_CHEFGIGN = DarkRP.createJob("Chef du GIGN", {
color = Color(0, 97, 255, 90),
model = {"models/player/r6s_doc.mdl"},
description = [[Vous êtes le chef du GIGN !]],
weapons = {"door_ram", "weaponchecker", "m9k_g36", "m9k_jackhammer", "pass_police_nationale", "weapon_cuff_police", "weapon_riotshield", "stungun", "stunstick", "opt_arrest", "unopt_arrest", "prokeypadcracker"},
command = "chefgign",
max = 1,
salary = 1250,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "VIP",
hasRadio = true,
PlayerSpawn = function(ply)
ply:SetArmor(150)
end,
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "admin", "modo", "modotest", "helpeur", "vip", "sa"}, ply:GetUserGroup()) end,
CustomCheckFailMsg = "Vous devez être VIP pour prendre ce métier.",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_ADMIN = DarkRP.createJob("Staff en service", {
color = Color(255, 255, 255, 90),
model = {"models/fearless/02.mdl"},
description = [[Vous êtes le sérieux du serveur !]],
weapons = {"door_ram", "weaponchecker", "vc_wrench", "weapon_medkit", "unopt_arrest", "weapon_keypadchecker", "stunstick"},
command = "staff",
max = 0,
salary = 9500,
admin = 1,
vote = false,
hasLicense = false,
candemote = false,
category = "Staff",
hasRadio = true,
PlayerSpawn = function(ply)
ply:SetHealth(999999)
end,
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "admin", "modo", "modotest", "helpeur", "sa"}, ply:GetUserGroup()) end,
CustomCheckFailMsg = "Vous devez être dans le staff pour prendre ce métier."
})

---------------------------------------------------------------------------------------- models/fearless/02.mdl
GAMEMODE.DefaultTeam = TEAM_CITIZEN

----------------------------------------------------------------------------------------
GAMEMODE.CivilProtection = {
[TEAM_POLICE] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
[TEAM_GIGN] = true,
[TEAM_MEDICGIGN] = true,
[TEAM_CHEFGIGN] = true,
[TEAM_SNIPERG] = true,
[TEAM_GUARDD] = true,
[TEAM_SECRE] = true,
[TEAM_DOUANE] = true
}

----------------------------------------------------------------------------------------
DarkRP.addHitmanTeam(TEAM_GAGE)
 

One.

Administrator/Dev
Administrateur
Level 5

Torrents Stats

Messages
750
J'aime
5 850
Trophées
1 869
Inscrit
24 Décembre 2015
Bonjour quand je rejoins mon serveur cela me dit sa dans la console
04340821b84451d3c5da48a5547fddd8.png






Voici mon Job.lua
-----------------------------------------------------
TEAM_CITIZEN = DarkRP.createJob("Citoyen", {
color = Color(20, 150, 20, 90),
model = {"models/humans/modern/female_01.mdl", "models/humans/modern/female_02.mdl", "models/humans/modern/female_03.mdl", "models/humans/modern/female_04.mdl", "models/humans/modern/female_06.mdl", "models/humans/modern/female_07.mdl", "models/humans/modern/male_01_01.mdl", "models/humans/modern/male_01_02.mdl", "models/humans/modern/male_01_03.mdl", "models/humans/modern/male_02_01.mdl", "models/humans/modern/male_02_02.mdl", "models/humans/modern/male_02_03.mdl", "models/humans/modern/male_03_01.mdl", "models/humans/modern/male_03_02.mdl", "models/humans/modern/male_03_03.mdl", "models/humans/modern/male_03_04.mdl", "models/humans/modern/male_03_05.mdl", "models/humans/modern/male_03_05.mdl", "models/humans/modern/male_03_06.mdl", "models/humans/modern/male_03_07.mdl", "models/humans/modern/male_04_01.mdl", "models/humans/modern/male_04_02.mdl", "models/humans/modern/male_04_03.mdl", "models/humans/modern/male_04_04.mdl", "models/humans/modern/male_05_01.mdl", "models/humans/modern/male_05_02.mdl", "models/humans/modern/male_05_03.mdl", "models/humans/modern/male_05_04.mdl", "models/humans/modern/male_05_05.mdl", "models/humans/modern/male_06_01.mdl", "models/humans/modern/male_06_02.mdl", "models/humans/modern/male_06_03.mdl", "models/humans/modern/male_06_04.mdl", "models/humans/modern/male_06_05.mdl", "models/humans/modern/male_07_01.mdl", "models/humans/modern/male_07_02.mdl", "models/humans/modern/male_07_03.mdl", "models/humans/modern/male_07_04.mdl", "models/humans/modern/male_07_05.mdl", "models/humans/modern/male_07_06.mdl", "models/humans/modern/male_08_01.mdl", "models/humans/modern/male_08_02.mdl", "models/humans/modern/male_08_03.mdl", "models/humans/modern/male_08_04.mdl", "models/humans/modern/male_09_01.mdl", "models/humans/modern/male_09_02.mdl", "models/humans/modern/male_09_03.mdl", "models/humans/modern/male_09_04.mdl"},
description = [[Vous êtes un honnête citoyen !]],
weapons = {},
command = "citizen",
max = 0,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
category = "Legal"
})

TEAM_TAXI = DarkRP.createJob("Chauffeur de Taxi", {
color = Color(20, 150, 20, 90),
model = {"models/humans/modern/female_01.mdl", "models/humans/modern/female_02.mdl", "models/humans/modern/female_03.mdl", "models/humans/modern/female_04.mdl", "models/humans/modern/female_06.mdl", "models/humans/modern/female_07.mdl", "models/humans/modern/male_01_01.mdl", "models/humans/modern/male_01_02.mdl", "models/humans/modern/male_01_03.mdl", "models/humans/modern/male_02_01.mdl", "models/humans/modern/male_02_02.mdl", "models/humans/modern/male_02_03.mdl", "models/humans/modern/male_03_01.mdl", "models/humans/modern/male_03_02.mdl", "models/humans/modern/male_03_03.mdl", "models/humans/modern/male_03_04.mdl", "models/humans/modern/male_03_05.mdl", "models/humans/modern/male_03_05.mdl", "models/humans/modern/male_03_06.mdl", "models/humans/modern/male_03_07.mdl", "models/humans/modern/male_04_01.mdl", "models/humans/modern/male_04_02.mdl", "models/humans/modern/male_04_03.mdl", "models/humans/modern/male_04_04.mdl", "models/humans/modern/male_05_01.mdl", "models/humans/modern/male_05_02.mdl", "models/humans/modern/male_05_03.mdl", "models/humans/modern/male_05_04.mdl", "models/humans/modern/male_05_05.mdl", "models/humans/modern/male_06_01.mdl", "models/humans/modern/male_06_02.mdl", "models/humans/modern/male_06_03.mdl", "models/humans/modern/male_06_04.mdl", "models/humans/modern/male_06_05.mdl", "models/humans/modern/male_07_01.mdl", "models/humans/modern/male_07_02.mdl", "models/humans/modern/male_07_03.mdl", "models/humans/modern/male_07_04.mdl", "models/humans/modern/male_07_05.mdl", "models/humans/modern/male_07_06.mdl", "models/humans/modern/male_08_01.mdl", "models/humans/modern/male_08_02.mdl", "models/humans/modern/male_08_03.mdl", "models/humans/modern/male_08_04.mdl", "models/humans/modern/male_09_01.mdl", "models/humans/modern/male_09_02.mdl", "models/humans/modern/male_09_03.mdl", "models/humans/modern/male_09_04.mdl"},
description = [[Vous êtes un chauffeur de taxi !]],
weapons = {},
command = "taxidriver",
max = 3,
salary = 120,
admin = 0,
vote = false,
hasLicense = false,
category = "Legal",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_BUS = DarkRP.createJob("Chauffeur de Bus", {
color = Color(20, 150, 20, 90),
model = {"models/humans/modern/female_01.mdl", "models/humans/modern/female_02.mdl", "models/humans/modern/female_03.mdl", "models/humans/modern/female_04.mdl", "models/humans/modern/female_06.mdl", "models/humans/modern/female_07.mdl", "models/humans/modern/male_01_01.mdl", "models/humans/modern/male_01_02.mdl", "models/humans/modern/male_01_03.mdl", "models/humans/modern/male_02_01.mdl", "models/humans/modern/male_02_02.mdl", "models/humans/modern/male_02_03.mdl", "models/humans/modern/male_03_01.mdl", "models/humans/modern/male_03_02.mdl", "models/humans/modern/male_03_03.mdl", "models/humans/modern/male_03_04.mdl", "models/humans/modern/male_03_05.mdl", "models/humans/modern/male_03_05.mdl", "models/humans/modern/male_03_06.mdl", "models/humans/modern/male_03_07.mdl", "models/humans/modern/male_04_01.mdl", "models/humans/modern/male_04_02.mdl", "models/humans/modern/male_04_03.mdl", "models/humans/modern/male_04_04.mdl", "models/humans/modern/male_05_01.mdl", "models/humans/modern/male_05_02.mdl", "models/humans/modern/male_05_03.mdl", "models/humans/modern/male_05_04.mdl", "models/humans/modern/male_05_05.mdl", "models/humans/modern/male_06_01.mdl", "models/humans/modern/male_06_02.mdl", "models/humans/modern/male_06_03.mdl", "models/humans/modern/male_06_04.mdl", "models/humans/modern/male_06_05.mdl", "models/humans/modern/male_07_01.mdl", "models/humans/modern/male_07_02.mdl", "models/humans/modern/male_07_03.mdl", "models/humans/modern/male_07_04.mdl", "models/humans/modern/male_07_05.mdl", "models/humans/modern/male_07_06.mdl", "models/humans/modern/male_08_01.mdl", "models/humans/modern/male_08_02.mdl", "models/humans/modern/male_08_03.mdl", "models/humans/modern/male_08_04.mdl", "models/humans/modern/male_09_01.mdl", "models/humans/modern/male_09_02.mdl", "models/humans/modern/male_09_03.mdl", "models/humans/modern/male_09_04.mdl"},
description = [[Vous êtes un chauffeur de bus !]],
weapons = {},
command = "busdriver",
max = 1,
salary = 120,
admin = 0,
vote = false,
hasLicense = false,
category = "Legal",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_HOBO = DarkRP.createJob("Clochard", {
color = Color(20, 150, 20, 90),
model = "models/player/corpse1.mdl",
description = [[Vous n'avez rien dans la vie, vous êtes rien !]],
weapons = {"weapon_bugbait"},
command = "hobo",
max = 6,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Legal",
hobo = true,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_GUN = DarkRP.createJob("Vendeur d'armes", {
color = Color(20, 150, 20, 90),
model = {"models/player/monk.mdl"},
description = [[Vous vendez des armes sous license !]],
weapons = {},
command = "armurierr",
max = 6,
salary = 120,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "Vendeur",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_GUNN = DarkRP.createJob("Vendeur d'armes illégal", {
color = Color(20, 150, 20, 90),
model = {"models/player/guerilla.mdl"},
description = [[Vous vendez des armes sous license !]],
weapons = {},
command = "armurierri",
max = 6,
salary = 120,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "Vendeur",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_COOK = DarkRP.createJob("Cuisinier", {
color = Color(20, 150, 20, 90),
model = {"models/fearless/chef1.mdl"},
description = [[Vous vendez de la nourriture !]],
weapons = {},
command = "cook",
max = 6,
salary = 120,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "Vendeur",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_MEDIC = DarkRP.createJob("Médecin", {
color = Color(20, 150, 20, 90),
model = {"models/player/Group03m/male_01.mdl", "models/player/Group03m/male_02.mdl", "models/player/Group03m/male_03.mdl", "models/player/Group03m/male_04.mdl", "models/player/Group03m/male_05.mdl", "models/player/Group03m/male_06.mdl", "models/player/Group03m/male_07.mdl", "models/player/Group03m/male_08.mdl", "models/player/Group03m/male_09.mdl"},
description = [[Vous êtes un Médecin !]],
weapons = {"med_kit"},
command = "medecinnn",
max = 4,
medic = true,
salary = 500,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "Legal",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_BANK = DarkRP.createJob("Banquier", {
color = Color(20, 150, 20, 90),
model = {"models/player/hostage/hostage_03.mdl", "models/player/hostage/hostage_01.mdl", "models/player/hostage/hostage_02.mdl", "models/player/hostage/hostage_04.mdl"},
description = [[Vous gérez la banque !]],
weapons = {},
command = "banquito",
max = 6,
salary = 1200,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "Legal",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_SECU = DarkRP.createJob("Agent de Sécurité", {
color = Color(20, 150, 20, 90),
model = {"models/player/portal/Male_01_security.mdl", "models/player/portal/Male_02_security.mdl", "models/player/portal/Male_03_security.mdl", "models/player/portal/Male_04_security.mdl", "models/player/portal/Male_05_security.mdl", "models/player/portal/Male_06_security.mdl", "models/player/portal/Male_07_security.mdl", "models/player/portal/Male_08_security.mdl", "models/player/portal/Male_09_security.mdl"},
description = [[Vous êtes un agent de sécurité, et vous travaillez dans le privée !]],
weapons = {"weaponchecker", "stunstick", "stungun"},
command = "secu",
max = 6,
salary = 200,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
category = "Legal",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_TOWER = DarkRP.createJob("Dépanneur", {
color = Color(34, 85, 85, 255),
model = {"models/player/monk.mdl"},
description = [[Vous êtes un dépanneur !]],
weapons = {"vc_wrench"},
command = "depanouze",
max = 4,
salary = 120,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "Legal",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

-- ILLEGAL --
TEAM_HR_CM = DarkRP.createJob("Trafiquant de Meth", {
color = Color(20, 150, 20, 90),
model = {"models/humans/modern/male_01_01.mdl", "models/humans/modern/male_01_02.mdl", "models/humans/modern/male_01_03.mdl", "models/humans/modern/male_02_01.mdl", "models/humans/modern/male_02_02.mdl", "models/humans/modern/male_02_03.mdl", "models/humans/modern/male_03_01.mdl", "models/humans/modern/male_03_02.mdl", "models/humans/modern/male_03_03.mdl", "models/humans/modern/male_03_04.mdl", "models/humans/modern/male_03_05.mdl", "models/humans/modern/male_03_05.mdl", "models/humans/modern/male_03_06.mdl", "models/humans/modern/male_03_07.mdl", "models/humans/modern/male_04_01.mdl", "models/humans/modern/male_04_02.mdl", "models/humans/modern/male_04_03.mdl", "models/humans/modern/male_04_04.mdl", "models/humans/modern/male_05_01.mdl", "models/humans/modern/male_05_02.mdl", "models/humans/modern/male_05_03.mdl", "models/humans/modern/male_05_04.mdl", "models/humans/modern/male_05_05.mdl", "models/humans/modern/male_06_01.mdl", "models/humans/modern/male_06_02.mdl", "models/humans/modern/male_06_03.mdl", "models/humans/modern/male_06_04.mdl", "models/humans/modern/male_06_05.mdl", "models/humans/modern/male_07_01.mdl", "models/humans/modern/male_07_02.mdl", "models/humans/modern/male_07_03.mdl", "models/humans/modern/male_07_04.mdl", "models/humans/modern/male_07_05.mdl", "models/humans/modern/male_07_06.mdl", "models/humans/modern/male_08_01.mdl", "models/humans/modern/male_08_02.mdl", "models/humans/modern/male_08_03.mdl", "models/humans/modern/male_08_04.mdl", "models/humans/modern/male_09_01.mdl", "models/humans/modern/male_09_02.mdl", "models/humans/modern/male_09_03.mdl", "models/humans/modern/male_09_04.mdl}", "models/humans/modern/female_02.mdl", "models/humans/modern/female_03.mdl", "models/humans/modern/female_04.mdl", "models/humans/modern/female_06.mdl", "models/humans/modern/female_07.mdl"},
description = [[Vous êtes un trafiquant de méthaphétamine]],
weapons = {},
command = "amphcook",
max = 3,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "Illegal",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_PSYCHOPATHE = DarkRP.createJob("Psychopathe", {
color = Color(20, 150, 20, 90),
model = {"models/humans/modern/female_01.mdl", "models/humans/modern/female_02.mdl", "models/humans/modern/female_03.mdl", "models/humans/modern/female_04.mdl", "models/humans/modern/female_06.mdl", "models/humans/modern/female_07.mdl", "models/humans/modern/male_01_01.mdl", "models/humans/modern/male_01_02.mdl", "models/humans/modern/male_01_03.mdl", "models/humans/modern/male_02_01.mdl", "models/humans/modern/male_02_02.mdl", "models/humans/modern/male_02_03.mdl", "models/humans/modern/male_03_01.mdl", "models/humans/modern/male_03_02.mdl", "models/humans/modern/male_03_03.mdl", "models/humans/modern/male_03_04.mdl", "models/humans/modern/male_03_05.mdl", "models/humans/modern/male_03_05.mdl", "models/humans/modern/male_03_06.mdl", "models/humans/modern/male_03_07.mdl", "models/humans/modern/male_04_01.mdl", "models/humans/modern/male_04_02.mdl", "models/humans/modern/male_04_03.mdl", "models/humans/modern/male_04_04.mdl", "models/humans/modern/male_05_01.mdl", "models/humans/modern/male_05_02.mdl", "models/humans/modern/male_05_03.mdl", "models/humans/modern/male_05_04.mdl", "models/humans/modern/male_05_05.mdl", "models/humans/modern/male_06_01.mdl", "models/humans/modern/male_06_02.mdl", "models/humans/modern/male_06_03.mdl", "models/humans/modern/male_06_04.mdl", "models/humans/modern/male_06_05.mdl", "models/humans/modern/male_07_01.mdl", "models/humans/modern/male_07_02.mdl", "models/humans/modern/male_07_03.mdl", "models/humans/modern/male_07_04.mdl", "models/humans/modern/male_07_05.mdl", "models/humans/modern/male_07_06.mdl", "models/humans/modern/male_08_01.mdl", "models/humans/modern/male_08_02.mdl", "models/humans/modern/male_08_03.mdl", "models/humans/modern/male_08_04.mdl", "models/humans/modern/male_09_01.mdl", "models/humans/modern/male_09_02.mdl", "models/humans/modern/male_09_03.mdl", "models/humans/modern/male_09_04.mdl"},
description = [[Vous êtes fou !]],
weapons = {"m9k_knife", "scalpel"},
command = "psychopathe",
max = 3,
salary = 100,
admin = 0,
vote = false,
hasLicense = true,
category = "VIP",
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "admin", "modo", "modotest", "helpeur", "vip", "sa"}, ply:GetUserGroup()) end,
CustomCheckFailMsg = "Vous devez être VIP pour prendre ce métier.",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_HACK = DarkRP.createJob("Hackeur", {
color = Color(20, 150, 20, 90),
model = {"models/playermodel/sterling/mr_robot.mdl"},
description = [[ A rediger ]],
weapons = {"weapon_arc_atmhack"},
command = "crackit",
max = 3,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
category = "Illegal",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_GAGE = DarkRP.createJob("Tueur à gage", {
color = Color(20, 150, 20, 90),
model = {"models/vinrax/player/punisher/punisher_tshirt.mdl"},
description = [[Vous tuez contre de l'argent !]],
weapons = {},
command = "gage",
max = 2,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "Illegal",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_VOL = DarkRP.createJob("Voleur", {
color = Color(20, 150, 20, 90),
model = {"models/humans/modern/female_01.mdl", "models/humans/modern/female_02.mdl", "models/humans/modern/female_03.mdl", "models/humans/modern/female_04.mdl", "models/humans/modern/female_06.mdl", "models/humans/modern/female_07.mdl", "models/humans/modern/male_01_01.mdl", "models/humans/modern/male_01_02.mdl", "models/humans/modern/male_01_03.mdl", "models/humans/modern/male_02_01.mdl", "models/humans/modern/male_02_02.mdl", "models/humans/modern/male_02_03.mdl", "models/humans/modern/male_03_01.mdl", "models/humans/modern/male_03_02.mdl", "models/humans/modern/male_03_03.mdl", "models/humans/modern/male_03_04.mdl", "models/humans/modern/male_03_05.mdl", "models/humans/modern/male_03_05.mdl", "models/humans/modern/male_03_06.mdl", "models/humans/modern/male_03_07.mdl", "models/humans/modern/male_04_01.mdl", "models/humans/modern/male_04_02.mdl", "models/humans/modern/male_04_03.mdl", "models/humans/modern/male_04_04.mdl", "models/humans/modern/male_05_01.mdl", "models/humans/modern/male_05_02.mdl", "models/humans/modern/male_05_03.mdl", "models/humans/modern/male_05_04.mdl", "models/humans/modern/male_05_05.mdl", "models/humans/modern/male_06_01.mdl", "models/humans/modern/male_06_02.mdl", "models/humans/modern/male_06_03.mdl", "models/humans/modern/male_06_04.mdl", "models/humans/modern/male_06_05.mdl", "models/humans/modern/male_07_01.mdl", "models/humans/modern/male_07_02.mdl", "models/humans/modern/male_07_03.mdl", "models/humans/modern/male_07_04.mdl", "models/humans/modern/male_07_05.mdl", "models/humans/modern/male_07_06.mdl", "models/humans/modern/male_08_01.mdl", "models/humans/modern/male_08_02.mdl", "models/humans/modern/male_08_03.mdl", "models/humans/modern/male_08_04.mdl", "models/humans/modern/male_09_01.mdl", "models/humans/modern/male_09_02.mdl", "models/humans/modern/male_09_03.mdl", "models/humans/modern/male_09_04.mdl"},
description = [[Vous êtes un voleur avec de nombreux talents !]],
weapons = {"lockpick", "keypad_cracker", "swep_pickpocket"},
command = "volirto",
max = 4,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
category = "Illegal",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_BICRAVE = DarkRP.createJob("Bicraveur", {
color = Color(20, 150, 20, 90),
model = {"models/csgoanarchist2pm.mdl", "models/csgoanarchist1pm.mdl", "models/csgoanarchist3pm.mdl", "models/csgoanarchist4pm.mdl"},
description = [[Vous êtes un bicraveur !]],
weapons = {},
command = "bicrave",
max = 2,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
category = "Vendeur",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

-- GANG --
TEAM_MAF = DarkRP.createJob("Mafieu", {
color = Color(255, 0, 0, 90),
model = {"models/fearless/mafia04.mdl", "models/fearless/mafia02.mdl", "models/fearless/mafia06.mdl", "models/fearless/mafia07.mdl", "models/fearless/mafia09.mdl"},
description = [[ Vous êtes un mafieu !]],
weapons = {},
command = "mafia",
max = 4,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
category = "Illegal",
candemote = true,
PlayerSpawn = function(ply)
ply:SetArmor(50)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_MAFF = DarkRP.createJob("Chef de la mafia", {
color = Color(255, 0, 0, 90),
model = {"models/vito.mdl"},
description = [[Vous êtes le chef de la mafia !]],
weapons = {"keypad_cracker", "lockpick", "weapon_cuff_rope"},
command = "chefmafia",
max = 1,
salary = 1000,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "VIP",
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "admin", "modo", "modotest", "helpeur", "vip", "sa"}, ply:GetUserGroup()) end,
CustomCheckFailMsg = "Vous devez être VIP pour prendre ce métier.",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_BLOODZ = DarkRP.createJob("Bloodz", {
color = Color(255, 0, 0, 90),
model = {"models/player/bloodz/slow_1.mdl", "models/player/bloodz/slow_2.mdl", "models/player/bloodz/slow_3.mdl"},
description = [[ Vous êtes un bloodz !]],
weapons = {},
command = "bloodz",
max = 4,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
category = "Illegal",
candemote = true,
PlayerSpawn = function(ply)
ply:SetArmor(50)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_CHEFBLOODZ = DarkRP.createJob("Chef des Bloodz", {
color = Color(255, 0, 0, 90),
model = {"models/player/bloodz/slow_1.mdl", "models/player/bloodz/slow_2.mdl", "models/player/bloodz/slow_3.mdl"},
description = [[Vous êtes le chef des Bloodz !]],
weapons = {"keypad_cracker", "lockpick", "weapon_cuff_rope"},
command = "chefbloodz",
max = 1,
salary = 1000,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "VIP",
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "admin", "modo", "modotest", "helpeur", "vip", "sa"}, ply:GetUserGroup()) end,
CustomCheckFailMsg = "Vous devez être VIP pour prendre ce métier.",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_CRIPZ = DarkRP.createJob("Cripz", {
color = Color(255, 0, 0, 90),
model = {"models/player/cripz/slow_1.mdl", "models/player/cripz/slow_2.mdl", "models/player/cripz/slow_3.mdl"},
description = [[ Vous êtes un cripz !]],
weapons = {},
command = "cripz",
max = 4,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
category = "Illegal",
candemote = true,
PlayerSpawn = function(ply)
ply:SetArmor(50)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_CHEFCRIPZ = DarkRP.createJob("Chef des Cripz", {
color = Color(255, 0, 0, 90),
model = {"models/player/cripz/slow_1.mdl", "models/player/cripz/slow_2.mdl", "models/player/cripz/slow_3.mdl"},
description = [[Vous êtes le chef des Cripz !]],
weapons = {"keypad_cracker", "lockpick", "weapon_cuff_rope"},
command = "chefcripz",
max = 1,
salary = 1000,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "VIP",
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "admin", "modo", "modotest", "helpeur", "vip", "sa"}, ply:GetUserGroup()) end,
CustomCheckFailMsg = "Vous devez être VIP pour prendre ce métier.",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_YAKUZA = DarkRP.createJob("Yakuza", {
color = Color(255, 0, 0, 90),
model = {"models/SD/Players/[soy_brawler]-head_brawler_dbs.mdl", "models/SD/Players/[soy_quick]-head_quick_soy.mdl", "models/SD/Players/[soy_striker]-head_striker_soy.mdl"},
description = [[ Vous êtes un Yakuza !]],
weapons = {},
command = "yakuza",
max = 4,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
category = "Illegal",
candemote = true,
PlayerSpawn = function(ply)
ply:SetArmor(50)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_CHEFYAKUZA = DarkRP.createJob("Chef des Yakuza", {
color = Color(255, 0, 0, 90),
model = {"models/SD/Players/[soy_grappler].mdl"},
description = [[Vous êtes le chef des Yakuza !]],
weapons = {"keypad_cracker", "lockpick", "weapon_cuff_rope"},
command = "chefyakuza",
max = 1,
salary = 1000,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "VIP",
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "admin", "modo", "modotest", "helpeur", "vip", "sa"}, ply:GetUserGroup()) end,
CustomCheckFailMsg = "Vous devez être VIP pour prendre ce métier.",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

-- GOUVERNEMENT --
TEAM_MAYOR = DarkRP.createJob("Maire", {
color = Color(0, 97, 255, 90),
model = {"models/player/breen.mdl", "models/player/gman_high.mdl"},
description = [[Vous êtes le Maire !]],
weapons = {"weaponchecker", "door_ram"},
command = "maire",
max = 1,
salary = 3000,
admin = 0,
vote = true,
hasLicense = true,
mayor = true,
category = "Gouvernement",
hasRadio = true,
PlayerSpawn = function(ply)
ply:SetArmor(250)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_GUARDD = DarkRP.createJob("Garde du Maire", {
color = Color(0, 97, 255, 90),
model = {"models/player/smith.mdl"},
description = [[Vous êtes le garde du Maire, sa vie est plus importante que la votre !]],
weapons = {"weaponchecker", "stunstick", "m9k_m416", "m9k_remington870", "weapon_cuff_police", "stungun"},
command = "mairegar",
max = 4,
salary = 1200,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
hasRadio = true,
category = "Gouvernement",
PlayerSpawn = function(ply)
ply:SetArmor(250)
end,
customCheck = function(ply) return team.NumPlayers(TEAM_MAYOR) == 1 end,
CustomCheckFailMsg = "Il te faut un président en vie pour devenir garde.",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_SECRE = DarkRP.createJob("Secrétaire du Maire", {
color = Color(0, 97, 255, 90),
model = {"models/player/mossman.mdl"},
description = [[Vous êtes la secrétaire du Maire !]],
weapons = {"stungun", "weaponchecker", "stunstick"},
command = "secreto",
max = 1,
salary = 1950,
admin = 0,
vote = false,
hasRadio = true,
hasLicense = true,
candemote = true,
category = "Gouvernement",
PlayerSpawn = function(ply)
ply:SetArmor(150)
end,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

-- POLICE --
TEAM_BAC = DarkRP.createJob("BAC", {
color = Color(20, 150, 20, 90),
model = {"models/humans/modern/female_01.mdl", "models/humans/modern/female_02.mdl", "models/humans/modern/female_03.mdl", "models/humans/modern/female_04.mdl", "models/humans/modern/female_06.mdl", "models/humans/modern/female_07.mdl", "models/humans/modern/male_01_01.mdl", "models/humans/modern/male_01_02.mdl", "models/humans/modern/male_01_03.mdl", "models/humans/modern/male_02_01.mdl", "models/humans/modern/male_02_02.mdl", "models/humans/modern/male_02_03.mdl", "models/humans/modern/male_03_01.mdl", "models/humans/modern/male_03_02.mdl", "models/humans/modern/male_03_03.mdl", "models/humans/modern/male_03_04.mdl", "models/humans/modern/male_03_05.mdl", "models/humans/modern/male_03_05.mdl", "models/humans/modern/male_03_06.mdl", "models/humans/modern/male_03_07.mdl", "models/humans/modern/male_04_01.mdl", "models/humans/modern/male_04_02.mdl", "models/humans/modern/male_04_03.mdl", "models/humans/modern/male_04_04.mdl", "models/humans/modern/male_05_01.mdl", "models/humans/modern/male_05_02.mdl", "models/humans/modern/male_05_03.mdl", "models/humans/modern/male_05_04.mdl", "models/humans/modern/male_05_05.mdl", "models/humans/modern/male_06_01.mdl", "models/humans/modern/male_06_02.mdl", "models/humans/modern/male_06_03.mdl", "models/humans/modern/male_06_04.mdl", "models/humans/modern/male_06_05.mdl", "models/humans/modern/male_07_01.mdl", "models/humans/modern/male_07_02.mdl", "models/humans/modern/male_07_03.mdl", "models/humans/modern/male_07_04.mdl", "models/humans/modern/male_07_05.mdl", "models/humans/modern/male_07_06.mdl", "models/humans/modern/male_08_01.mdl", "models/humans/modern/male_08_02.mdl", "models/humans/modern/male_08_03.mdl", "models/humans/modern/male_08_04.mdl", "models/humans/modern/male_09_01.mdl", "models/humans/modern/male_09_02.mdl", "models/humans/modern/male_09_03.mdl", "models/humans/modern/male_09_04.mdl"},
description = [[Vous êtes un policier en civil !]],
weapons = {"door_ram", "weaponchecker", "m9k_deagle", "pass_police_nationale", "weapon_cuff_police", "stungun", "stunstick", "opt_arrest", "unopt_arrest"},
command = "bacb",
max = 6,
salary = 300,
hasRadio = true,
admin = 0,
vote = false,
hasLicense = false,
PlayerSpawn = function(ply)
ply:SetArmor(120)
end,
category = "Gouvernement",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_POLICE = DarkRP.createJob("Policier", {
color = Color(0, 97, 255, 90),
model = {"models/player/portal/f_police2.mdl", "models/player/portal/f_police.mdl", "models/player/portal/f_police3.mdl", "models/player/portal/f_police4.mdl", "models/player/portal/f_police5.mdl", "models/player/portal/f_police6.mdl", "models/player/portal/f_police7.mdl", "models/player/portal/f_police_armor.mdl", "models/player/portal/f_police2_armor.mdl", "models/player/portal/f_police3_armor.mdl", "models/player/portal/f_police4_armor.mdl", "models/player/portal/f_police5_armor.mdl", "models/player/portal/f_police6_armor.mdl", "models/player/portal/f_police7_armor.mdl"},
description = [[Vous êtes la loi et l'ordre !]],
weapons = {"m9k_usp", "door_ram", "weaponchecker", "m9k_mp5sd", "pass_police_nationale", "weapon_cuff_police", "stungun", "stunstick", "opt_arrest", "unopt_arrest"},
command = "flic",
max = 10,
salary = 450,
admin = 0,
vote = false,
hasLicense = true,
hasRadio = true,
PlayerSpawn = function(ply)
ply:SetArmor(150)
end,
category = "Gouvernement",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_DOUANE = DarkRP.createJob("Douane", {
color = Color(0, 97, 255, 90),
model = {"models/player/portal/f_police2.mdl", "models/player/portal/f_police.mdl", "models/player/portal/f_police3.mdl", "models/player/portal/f_police4.mdl", "models/player/portal/f_police5.mdl", "models/player/portal/f_police6.mdl", "models/player/portal/f_police7.mdl", "models/player/portal/f_police_armor.mdl", "models/player/portal/f_police2_armor.mdl", "models/player/portal/f_police3_armor.mdl", "models/player/portal/f_police4_armor.mdl", "models/player/portal/f_police5_armor.mdl", "models/player/portal/f_police6_armor.mdl", "models/player/portal/f_police7_armor.mdl"},
description = [[Vous gèrer chaque convois et chaque routes !]],
weapons = {"m9k_usp", "door_ram", "weaponchecker", "pass_police_nationale", "weapon_cuff_police", "stungun", "vc_spikestrip_wep", "vc_wrench", "stunstick", "opt_arrest", "unopt_arrest"},
command = "douane",
max = 6,
salary = 300,
admin = 0,
vote = false,
hasLicense = true,
hasRadio = true,
PlayerSpawn = function(ply)
ply:SetArmor(90)
end,
category = "Gouvernement",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_CHIEF = DarkRP.createJob("Commissaire", {
color = Color(0, 97, 255, 90),
model = {"models/portal2/patrol_04.mdl", "models/portal2/patrol_02.mdl", "models/portal2/patrol_05.mdl", "models/portal2/patrol_06.mdl", "models/portal2/patrol_07.mdl", "models/portal2/patrol_08.mdl", "models/portal2/patrol_09.mdl"},
description = [[Vous gérez la police !]],
weapons = {"door_ram", "weaponchecker", "m9k_m416", "m9k_deagle", "pass_police_nationale", "weapon_cuff_police", "stungun", "vc_spikestrip_wep", "vc_wrench", "stunstick", "opt_arrest", "unopt_arrest", "prokeypadcracker"},
command = "chief",
max = 2,
salary = 1200,
admin = 0,
vote = false,
hasLicense = true,
candemote = true,
hasRadio = true,
PlayerSpawn = function(ply)
ply:SetArmor(250)
ply:SetHealth(100)
end,
chief = true,
category = "VIP",
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "admin", "modo", "modotest", "helpeur", "vip", "sa"}, ply:GetUserGroup()) end,
CustomCheckFailMsg = "Vous devez être VIP pour prendre ce métier.",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_GIGN = DarkRP.createJob("GIGN", {
color = Color(0, 97, 255, 90),
model = {"models/player/RAID/RAID_04.mdl", "models/player/RAID/RAID_01.mdl", "models/player/RAID/RAID_02.mdl", "models/player/RAID/RAID_03.mdl", "models/player/RAID/RAID_05.mdl", "models/player/RAID/RAID_06.mdl", "models/player/RAID/RAID_07.mdl"},
description = [[Vous êtes une unité d'élite !]],
weapons = {"door_ram", "weaponchecker", "m9k_mp7", "m9k_jackhammer", "pass_police_nationale", "weapon_cuff_police", "weapon_riotshield", "stungun", "stunstick", "opt_arrest", "unopt_arrest"},
command = "gign",
max = 6,
salary = 500,
admin = 0,
vote = false,
hasLicense = true,
hasRadio = true,
PlayerSpawn = function(ply)
ply:SetArmor(250)
end,
category = "VIP",
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "admin", "modo", "modotest", "helpeur", "vip", "sa"}, ply:GetUserGroup()) end,
CustomCheckFailMsg = "Vous devez être VIP pour prendre ce métier.",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_MEDICGIGN = DarkRP.createJob("Médecin du GIGN", {
color = Color(0, 97, 255, 90),
description = [[Vous êtes le médecin du GIGN !]],
model = {"models/player/RAID/RAID_04.mdl", "models/player/RAID/RAID_01.mdl", "models/player/RAID/RAID_02.mdl", "models/player/RAID/RAID_03.mdl", "models/player/RAID/RAID_05.mdl", "models/player/RAID/RAID_06.mdl", "models/player/RAID/RAID_07.mdl"},
weapons = {"door_ram", "weaponchecker", "m9k_mp7", "m9k_jackhammer", "med_kit", "pass_police_nationale", "weapon_cuff_police", "weapon_riotshield", "stungun", "stunstick", "opt_arrest", "unopt_arrest"},
command = "medigign",
max = 2,
salary = 550,
admin = 0,
vote = false,
hasLicense = true,
hasRadio = true,
PlayerSpawn = function(ply)
ply:SetArmor(200)
end,
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "admin", "modo", "modotest", "helpeur", "vip", "sa"}, ply:GetUserGroup()) end,
CustomCheckFailMsg = "Vous devez être VIP pour prendre ce métier.",
category = "VIP",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_SNIPERG = DarkRP.createJob("Sniper du GIGN", {
color = Color(0, 97, 255, 90),
model = {"models/player/RAID/RAID_04.mdl", "models/player/RAID/RAID_01.mdl", "models/player/RAID/RAID_02.mdl", "models/player/RAID/RAID_03.mdl", "models/player/RAID/RAID_05.mdl", "models/player/RAID/RAID_06.mdl", "models/player/RAID/RAID_07.mdl"},
description = [[Vous êtes le sniper du GIGN !]],
weapons = {"m9k_m98b", "door_ram", "weaponchecker", "pass_police_nationale", "weapon_cuff_police", "stungun", "stunstick", "opt_arrest", "unopt_arrest", "sa"},
command = "snipergign",
max = 2,
salary = 350,
admin = 0,
vote = false,
hasLicense = true,
hasRadio = true,
PlayerSpawn = function(ply)
ply:SetArmor(150)
end,
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "admin", "modo", "modotest", "helpeur", "vip", "sa"}, ply:GetUserGroup()) end,
CustomCheckFailMsg = "Vous devez être VIP pour prendre ce métier.",
category = "VIP",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_CHEFGIGN = DarkRP.createJob("Chef du GIGN", {
color = Color(0, 97, 255, 90),
model = {"models/player/r6s_doc.mdl"},
description = [[Vous êtes le chef du GIGN !]],
weapons = {"door_ram", "weaponchecker", "m9k_g36", "m9k_jackhammer", "pass_police_nationale", "weapon_cuff_police", "weapon_riotshield", "stungun", "stunstick", "opt_arrest", "unopt_arrest", "prokeypadcracker"},
command = "chefgign",
max = 1,
salary = 1250,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
category = "VIP",
hasRadio = true,
PlayerSpawn = function(ply)
ply:SetArmor(150)
end,
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "admin", "modo", "modotest", "helpeur", "vip", "sa"}, ply:GetUserGroup()) end,
CustomCheckFailMsg = "Vous devez être VIP pour prendre ce métier.",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
end
})

TEAM_ADMIN = DarkRP.createJob("Staff en service", {
color = Color(255, 255, 255, 90),
model = {"models/fearless/02.mdl"},
description = [[Vous êtes le sérieux du serveur !]],
weapons = {"door_ram", "weaponchecker", "vc_wrench", "weapon_medkit", "unopt_arrest", "weapon_keypadchecker", "stunstick"},
command = "staff",
max = 0,
salary = 9500,
admin = 1,
vote = false,
hasLicense = false,
candemote = false,
category = "Staff",
hasRadio = true,
PlayerSpawn = function(ply)
ply:SetHealth(999999)
end,
customCheck = function(ply) return CLIENT or table.HasValue({"superadmin", "admin", "modo", "modotest", "helpeur", "sa"}, ply:GetUserGroup()) end,
CustomCheckFailMsg = "Vous devez être dans le staff pour prendre ce métier."
})

---------------------------------------------------------------------------------------- models/fearless/02.mdl
GAMEMODE.DefaultTeam = TEAM_CITIZEN

----------------------------------------------------------------------------------------
GAMEMODE.CivilProtection = {
[TEAM_POLICE] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
[TEAM_GIGN] = true,
[TEAM_MEDICGIGN] = true,
[TEAM_CHEFGIGN] = true,
[TEAM_SNIPERG] = true,
[TEAM_GUARDD] = true,
[TEAM_SECRE] = true,
[TEAM_DOUANE] = true
}

----------------------------------------------------------------------------------------
DarkRP.addHitmanTeam(TEAM_GAGE)
C'est à cause d'une interférence avec ton gamemode, réinstalle ton gamemode n le prenant sur Github, si letreur persiste, met tes jobs dans ton gamemode meme si c'est déconseillé.
 

capter

Master 🏆
Level 2

Torrents Stats

Messages
85
J'aime
4
Trophées
195
Inscrit
20 Octobre 2017
D'accord j'ai reussi j'ai plus d'erreur par contre quand j'"essaye de changer de job cela ce fais rien et rien est écris dans la console
 

One.

Administrator/Dev
Administrateur
Level 5

Torrents Stats

Messages
750
J'aime
5 850
Trophées
1 869
Inscrit
24 Décembre 2015
Console client et serveur ?
D'accord j'ai reussi j'ai plus d'erreur par contre quand j'"essaye de changer de job cela ce fais rien et rien est écris dans la console
 

capter

Master 🏆
Level 2

Torrents Stats

Messages
85
J'aime
4
Trophées
195
Inscrit
20 Octobre 2017
console client
Code:
Redownloading all lightmaps
Counter Strike Source is not mounted!
Counter Strike Source is not mounted!
Common symptoms: money and guns floating in the air
Common symptoms: money and guns floating in the air
You need to mount CSS
You need to mount CSS
DarkRP will not work without it
DarkRP will not work without it
Read these pages:
Read these pages:
http://wiki.garrysmod.com/page/Retrieving_content_to_be_mounted_on_a_Dedicated_Server
http://wiki.garrysmod.com/page/Retrieving_content_to_be_mounted_on_a_Dedicated_Server
http://wiki.garrysmod.com/page/Mounting_Content_on_a_DS
http://wiki.garrysmod.com/page/Mounting_Content_on_a_DS
VCMod: started loading clientside.
Failed creating font 'MenuLarge'!
Failed creating font 'Trebuchet24'!
Failed creating font 'Trebuchet24'!
Failed creating font 'MenuLarge'!
Failed creating font 'MenuLarge'!
Failed creating font 'MenuLarge'!
Failed creating font 'MenuLarge'!
Failed creating font 'MenuLarge'!
Failed creating font 'MenuLarge'!
Failed creating font 'MenuLarge'!
Failed creating font 'MenuLarge'!
Failed creating font 'MenuLarge'!
Failed creating font 'BudgetLabel'!
Failed creating font 'MenuLarge'!
Failed creating font 'MenuLarge'!
Failed creating font 'MenuLarge'!
Failed creating font 'MenuLarge'!
Failed creating font 'MenuLarge'!
VCMod: finished loading clientside.
VCMod: initialized clientside language data.



console server https://gyazo.com/cd7dee25dd1cf4992b7eaae0981c4d16
 

One.

Administrator/Dev
Administrateur
Level 5

Torrents Stats

Messages
750
J'aime
5 850
Trophées
1 869
Inscrit
24 Décembre 2015
C'est quoi comme f4 menu ?
 

capter

Master 🏆
Level 2

Torrents Stats

Messages
85
J'aime
4
Trophées
195
Inscrit
20 Octobre 2017

capter

Master 🏆
Level 2

Torrents Stats

Messages
85
J'aime
4
Trophées
195
Inscrit
20 Octobre 2017
j'ai regarder et j'ai changer de menu f4 j'ai pris elite f4 menu et maintenant cela fais ceci
77e0e551f1df2daa1fca175bcc616d6d.png


Mais cela me donne pas le métier
C'est quoi comme f4 menu ?
 

capter

Master 🏆
Level 2

Torrents Stats

Messages
85
J'aime
4
Trophées
195
Inscrit
20 Octobre 2017
j'ai regarder et j'ai changer de menu f4 j'ai pris elite f4 menu et maintenant cela fais ceci
77e0e551f1df2daa1fca175bcc616d6d.png


Mais cela me donne pas le métier
C'est quoi comme f4 menu ?
 

One.

Administrator/Dev
Administrateur
Level 5

Torrents Stats

Messages
750
J'aime
5 850
Trophées
1 869
Inscrit
24 Décembre 2015
Doit avoir une backdoor, la ligne qui spam dans la console cherche à deban en permanace quelqu'un..
 
C

Certurix

Deleted Member
Doit avoir une backdoor, la ligne qui spam dans la console cherche à deban en permanace quelqu'un..
Yup faut faire très attention car y'a des gens qui te proposent des elites f4 menu, blogs , awarn et autres addons avec backdoor 'nostrip'
 

One.

Administrator/Dev
Administrateur
Level 5

Torrents Stats

Messages
750
J'aime
5 850
Trophées
1 869
Inscrit
24 Décembre 2015
Pour information, sur ce screen
https://gyazo.com/04340821b84451d3c5da48a5547fddd8.png

Ton erreur viens d'un job qui n'a pas de commande unique.
J'ai ptetre pas beaucoup d'expérience en serveur DarkRP mais ce que tu dis est totalement faux, il ne faut pas toujours ce fier aux apparences :)

En effet, dans le cas ici présent, il nous a fourni sont jobs.lua qui démontre le fait qu'il y ai deux fois cette commande. Une simple réinstallation du gamemode a suffit pour éviter les interférences entre le gamemode et le DarkRP modification.
 
Haut Bas