Bug des job dans le fichier job.lua

  • Initiateur de la discussion julios123
  • Date de début
  • Initiateur de la discussion
J

julios123

Geek suprême
Messages
58
Score réaction
4
Points
100
bonjour
j'utilise un site pour identifier les problèmes dans mon fichier job.lua mais je n'arrive pas à corriger l'erreur vous savez d'où ça peut venir s'il vous plaît
merci pour votre aide la communauté
 

Pièces jointes

  • brave_ZrMnAatuOj.jpg
    brave_ZrMnAatuOj.jpg
    161.7 KB Vues: 25
NoaGamingFR

NoaGamingFR

Wait :)
Messages
3 650
Score réaction
625
Points
340
julios123 à dit:
bonjour
j'utilise un site pour identifier les problèmes dans mon fichier job.lua mais je n'arrive pas à corriger l'erreur vous savez d'où ça peut venir s'il vous plaît
merci pour votre aide la communauté
Envoie l'erreur.
 
  • Initiateur de la discussion
J

julios123

Geek suprême
Messages
58
Score réaction
4
Points
100
NoaGamingFR à dit:
Envoie l'erreur.
Merci de regarde l'image mis dans le post s'il vous plait
Merci pour votre aide
 
NoaGamingFR

NoaGamingFR

Wait :)
Messages
3 650
Score réaction
625
Points
340
julios123 à dit:
Merci de regarde l'image mis dans le post s'il vous plait
Merci pour votre aide
L'erreur dans la console de ton serv ?
PS: Ta un end en trop a la fin non?
 
  • Initiateur de la discussion
J

julios123

Geek suprême
Messages
58
Score réaction
4
Points
100
NoaGamingFR à dit:
L'erreur dans la console de ton serv ?
PS: Ta un end en trop a la fin non?
j'ai modifier le fichier job.lua et l'erreur vient du job.lua j'utilise ce site pour identifier les erreur de code il faut juste copier coller sont code et ça me dit ou sont les erreurs
 
NoaGamingFR

NoaGamingFR

Wait :)
Messages
3 650
Score réaction
625
Points
340
julios123 à dit:
j'ai modifier le fichier job.lua et l'erreur vient du job.lua j'utilise ce site pour identifier les erreur de code il faut juste copier coller sont code et ça me dit ou sont les erreurs
Envoie ton code, je vais le corriger ^^
 
  • Initiateur de la discussion
J

julios123

Geek suprême
Messages
58
Score réaction
4
Points
100
NoaGamingFR à dit:
Envoie ton code, je vais le corriger ^^
-- Put your Lua here
-- Put your Lua here
--[[---------------------------------------------------------------------------
DarkRP custom jobs
---------------------------------------------------------------------------
This file contains your custom jobs.
This file should also contain jobs from DarkRP that you edited.

Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
Once you've done that, copy and paste the job to this file and edit it.

The default jobs can be found here:

For examples and explanation please visit this wiki page:

Add your custom jobs under the following line:
---------------------------------------------------------------------------]]

--------------------------- EXEMPLES_by_gautias----------------------------
-- TEAM_(le nom de ta TEAM exemple) : TEAM_CIVIL = DarkRP.createJob("le nom de ton jobs", {
-- color = Color(20, 150, 20, 255), (la couleur que ton jobs vas avoir dans le TAB)
-- model = "models/player/zelpa/male_01.mdl", (le models donc ton skin de ton personnage)
-- description = [[]],
-- weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"}, (ce qu'il vas voir dans la molette)
-- command = "gdc", (la commande de ta TEAM donc exemples :civil) (EN MINUSCULE)
-- max = 2, (le nombre de personnes qu'il pourra venir civil ou autre)
-- salary = 10, (le salaire)
-- admin = 0, (NE PAS TOUCHER)
-- vote = false, (ci il dois etre voter avant de devenir ce jobs)
-- hasLicense = false, (NE PAS TOUCHER)
-- candemote = false, (NE PAS TOUCHER)
-- category = "Citizens", (la catégorie dans ton F4)


TEAM_CITIZEN = DarkRP.createJob("Civil", {
color = Color(20, 150, 20, 255),
model = {
"models/player/zelpa/male_01.mdl",
"models/player/zelpa/male_02.mdl",
"models/player/zelpa/male_03.mdl",
"models/player/zelpa/male_04.mdl",
"models/player/zelpa/male_05.mdl",
"models/player/zelpa/male_06.mdl",
"models/player/zelpa/male_07.mdl",
"models/player/zelpa/male_08.mdl",
"models/player/zelpa/male_09.mdl",
"models/player/zelpa/male_10.mdl",
"models/player/zelpa/male_11.mdl",
},
description = [[Vous Voter...ect]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "citizens",
max = 0,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
})

TEAM_Maire = DarkRP.createJob("Maire", {
color = Color(17, 119, 17, 255),
model = "models/fearless/mayor1.mdl",
"models/fearless/mayor2.mdl",
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "mayors",
category = "Citizens",
max = 1,
salary = 80,
admin = 0,
vote = true,
hasLicense = false,
mayor = true,

})


TEAM_COOKE = DarkRP.createJob("Cuisiner", {
color = Color(17, 119, 17, 255),
model = {"models/fearless/chef1.mdl",
"models/fearless/chef2.mdl"
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "cooke",
max = 2,
salary = 40,
admin = 0,
vote = false,
hasLicense = false,
cook = true,
})

TEAM_ABLC = DarkRP.createJob("Ambulancier", {
color = Color(20, 150, 20, 255),
model = {
"models/player/portal/male_09_medic.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup","med_kit"},
command = "ablc",
max = 2,
salary = 30,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens",
})

TEAM_QCL = DarkRP.createJob("Quincaillerie", {
color = Color(20, 150, 20, 255),
model = {
"models/player/zelpa/male_01.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "qlc",
max = 2,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
})

TEAM_VA = DarkRP.createJob("Vendeur Armes", {
color = Color(20, 150, 20, 255),
model = {
"models/player/arnold_schwarzenegger.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "va",
max = 2,
salary = 35,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
})

TEAM_TAXI = DarkRP.createJob("Taxi", {
color = Color(20, 150, 20, 255),
model = {
"models/player/zelpa/male_01.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "taxi",
max = 2,
salary = 30,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
})

TEAM_CDB = DarkRP.createJob("Chauffeur de bus", {
color = Color(20, 150, 20, 255),
model = {
"models/player/suits/male_01_shirt.mdl",
"models/player/suits/male_02_shirt.mdl",
"models/player/suits/male_03_shirt.mdl",
"models/player/suits/male_04_shirt.mdl",
"models/player/suits/male_05_shirt.mdl",
"models/player/suits/male_06_shirt.mdl",
"models/player/suits/male_07_shirt.mdl",
"models/player/suits/male_08_shirt.mdl",
"models/player/suits/male_09_shirt.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "cdb",
max = 2,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
})

TEAM_GDC = DarkRP.createJob("Garde du Corp", {
color = Color(20, 150, 20, 255),
model = {
"models/player/guard_pack/guard_01.mdl",
"models/player/guard_pack/guard_02.mdl",
"models/player/guard_pack/guard_03.mdl",
"models/player/guard_pack/guard_04.mdl",
"models/player/guard_pack/guard_05.mdl",
"models/player/guard_pack/guard_06.mdl",
"models/player/guard_pack/guard_07.mdl",
"models/player/guard_pack/guard_08.mdl",
"models/player/guard_pack/guard_09.mdl",
},

description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "gdc",
max = 4,
salary = 55,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
-- Put your Lua here
--[[---------------------------------------------------------------------------
DarkRP custom jobs
---------------------------------------------------------------------------
This file contains your custom jobs.
This file should also contain jobs from DarkRP that you edited.

Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
Once you've done that, copy and paste the job to this file and edit it.

The default jobs can be found here:

For examples and explanation please visit this wiki page:

Add your custom jobs under the following line:
---------------------------------------------------------------------------]]

--------------------------- EXEMPLES_by_gautias----------------------------
-- TEAM_(le nom de ta TEAM exemple) : TEAM_CIVIL = DarkRP.createJob("le nom de ton jobs", {
-- color = Color(20, 150, 20, 255), (la couleur que ton jobs vas avoir dans le TAB)
-- model = "models/player/zelpa/male_01.mdl", (le models donc ton skin de ton personnage)
-- description = [[]],
-- weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"}, (ce qu'il vas voir dans la molette)
-- command = "gdc", (la commande de ta TEAM donc exemples :civil) (EN MINUSCULE)
-- max = 2, (le nombre de personnes qu'il pourra venir civil ou autre)
-- salary = 10, (le salaire)
-- admin = 0, (NE PAS TOUCHER)
-- vote = false, (ci il dois etre voter avant de devenir ce jobs)
-- hasLicense = false, (NE PAS TOUCHER)
-- candemote = false, (NE PAS TOUCHER)
-- category = "Citizens", (la catégorie dans ton F4)


TEAM_CITIZEN = DarkRP.createJob("Civil", {
color = Color(20, 150, 20, 255),
model = {
"models/player/zelpa/male_01.mdl",
"models/player/zelpa/male_02.mdl",
"models/player/zelpa/male_03.mdl",
"models/player/zelpa/male_04.mdl",
"models/player/zelpa/male_05.mdl",
"models/player/zelpa/male_06.mdl",
"models/player/zelpa/male_07.mdl",
"models/player/zelpa/male_08.mdl",
"models/player/zelpa/male_09.mdl",
"models/player/zelpa/male_10.mdl",
"models/player/zelpa/male_11.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "citizens",
max = 0,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
})

TEAM_MAIRE = DarkRP.createJob("Maire", {
color = Color(17, 119, 17, 255),
model = {
"models/fearless/mayor1.mdl",
"models/fearless/mayor2.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "mayors",
category = "Citizens",
max = 1,
salary = 80,
admin = 0,
vote = true,
hasLicense = false,
mayor = true,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})


TEAM_COOKE = DarkRP.createJob("Cuisiner", {
color = Color(17, 119, 17, 255),
model = {"models/fearless/chef1.mdl",
"models/fearless/chef2.mdl"
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "cooke",
max = 2,
salary = 40,
admin = 0,
vote = false,
hasLicense = false,
cook = true,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})

TEAM_ABLC = DarkRP.createJob("Ambulancier", {
color = Color(20, 150, 20, 255),
model = {
"models/player/portal/male_09_medic.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup","med_kit"},
command = "ablc",
max = 2,
salary = 30,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})

TEAM_QCL = DarkRP.createJob("Quincaillerie", {
color = Color(20, 150, 20, 255),
model = {
"models/player/zelpa/male_01.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "qlc",
max = 2,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})

TEAM_VA = DarkRP.createJob("Vendeur Armes", {
color = Color(20, 150, 20, 255),
model = {
"models/player/arnold_schwarzenegger.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "va",
max = 2,
salary = 35,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})

TEAM_TAXI = DarkRP.createJob("Taxi", {
color = Color(20, 150, 20, 255),
model = {
"models/player/zelpa/male_01.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "taxi",
max = 2,
salary = 30,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})

TEAM_CDB = DarkRP.createJob("Chauffeur de bus", {
color = Color(20, 150, 20, 255),
model = {
"models/player/suits/male_01_shirt.mdl",
"models/player/suits/male_02_shirt.mdl",
"models/player/suits/male_03_shirt.mdl",
"models/player/suits/male_04_shirt.mdl",
"models/player/suits/male_05_shirt.mdl",
"models/player/suits/male_06_shirt.mdl",
"models/player/suits/male_07_shirt.mdl",
"models/player/suits/male_08_shirt.mdl",
"models/player/suits/male_09_shirt.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "cdb",
max = 2,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})

TEAM_GDC = DarkRP.createJob("Garde du Corp", {
color = Color(20, 150, 20, 255),
model = {
"models/player/guard_pack/guard_01.mdl",
"models/player/guard_pack/guard_02.mdl",
"models/player/guard_pack/guard_03.mdl",
"models/player/guard_pack/guard_04.mdl",
"models/player/guard_pack/guard_05.mdl",
"models/player/guard_pack/guard_06.mdl",
"models/player/guard_pack/guard_07.mdl",
"models/player/guard_pack/guard_08.mdl",
"models/player/guard_pack/guard_09.mdl",
},

description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "gdc",
max = 4,
salary = 55,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})

---------------------Gouvernement---------------------

TEAM_COMMISSAIRE = DarkRP.createJob("Commssaire", {
color = Color(20, 150, 20, 255),
model = {
"models/portal2/patrol_02.mdl",
"models/portal2/patrol_04.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 = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup","fas2_deagle","stungun","fas2_mp5k"},
command = "commisaire",
max = 1,
salary = 75,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})

TEAM_POLICE = DarkRP.createJob("Police", {
color = Color(20, 150, 20, 255),
model = {
"models/fear/player/portal/male_1.mdl",
"models/fear/player/portal/male_2.mdl",
"models/fear/player/portal/male_3.mdl",
"models/fear/player/portal/male_4.mdl",
"models/fear/player/portal/male_5.mdl",
"models/fear/player/portal/male_6.mdl",

},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup","fas2_deagle","stungun"},
command = "police",
max = 8,
salary = 55,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})

TEAM_GIGN = DarkRP.createJob("GIGN", {
color = Color(20, 150, 20, 255),
model = {
"models/player/pmc_1/pmc__01.mdl",
"models/player/pmc_1/pmc__02.mdl",
"models/player/pmc_1/pmc__04.mdl",
"models/player/pmc_1/pmc__05.mdl",
"models/player/pmc_1/pmc__07.mdl",
"models/player/pmc_1/pmc__08.mdl",
"models/player/pmc_6/pmc__14.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup","fas2_glock20","stungun","fas2_mp5sd6"},
command = "gign",
max = 5,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})

TEAM_BAC = DarkRP.createJob("Bac", {
color = Color(20, 150, 20, 255),
model = {
"models/player/spike/itzblitzhd.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup","fas2_glock20","stungun"},
command = "bac",
max = 3,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})

TEAM_TEL = DarkRP.createJob("Vendeur de smartphone", {
color = Color(255, 0, 0, 255),
model = {"models/player/spike/itzblitzhd.mdl",},
description = [[Votre rôle est de ventre des téléphones]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys"},
command = "vendeurdetelephone",
max = 3,
salary = 35,
admin = 0,
vote = false,
hasLicense = false,
candemote = true

})
--[[---------------------------------------------------------------------------
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,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_MOB)

})

---------------------Gouvernement---------------------

TEAM_COMMISSAIRE = DarkRP.createJob("Commssaire", {
color = Color(20, 150, 20, 255),
model = {
"models/portal2/patrol_02.mdl",
"models/portal2/patrol_04.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 = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup","fas2_deagle","stungun","fas2_mp5k"},
command = "commisaire",
max = 1,
salary = 75,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})

TEAM_POLICE = DarkRP.createJob("Police", {
color = Color(20, 150, 20, 255),
model = {
"models/fear/player/portal/male_1.mdl",
"models/fear/player/portal/male_2.mdl",
"models/fear/player/portal/male_3.mdl",
"models/fear/player/portal/male_4.mdl",
"models/fear/player/portal/male_5.mdl",
"models/fear/player/portal/male_6.mdl",

},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup","fas2_deagle","stungun"},
command = "police",
max = 8,
salary = 55,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})

TEAM_GIGN = DarkRP.createJob("GIGN", {
color = Color(20, 150, 20, 255),
model = {
"models/player/pmc_1/pmc__01.mdl",
"models/player/pmc_1/pmc__02.mdl",
"models/player/pmc_1/pmc__04.mdl",
"models/player/pmc_1/pmc__05.mdl",
"models/player/pmc_1/pmc__07.mdl",
"models/player/pmc_1/pmc__08.mdl",
"models/player/pmc_6/pmc__14.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup","fas2_glock20","stungun","fas2_mp5sd6"},
command = "gign",
max = 5,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})

TEAM_BAC = DarkRP.createJob("Bac", {
color = Color(20, 150, 20, 255),
model = {
"models/player/spike/itzblitzhd.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup","fas2_glock20","stungun"},
command = "bac",
max = 3,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})

TEAM_TEL = DarkRP.createJob("Vendeur de smartphone", {
color = Color(255, 0, 0, 255),
model = {"models/player/spike/itzblitzhd.mdl",},
description = [[Votre rôle est de ventre des téléphones]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys"},
command = "vendeurdetelephone",
max = 3,
salary = 35,
admin = 0,
vote = false,
hasLicense = false,
candemote = true
})
--[[---------------------------------------------------------------------------
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,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_MOB)
 
NoaGamingFR

NoaGamingFR

Wait :)
Messages
3 650
Score réaction
625
Points
340
julios123 à dit:
-- Put your Lua here
-- Put your Lua here
--[[---------------------------------------------------------------------------
DarkRP custom jobs
---------------------------------------------------------------------------
This file contains your custom jobs.
This file should also contain jobs from DarkRP that you edited.

Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
Once you've done that, copy and paste the job to this file and edit it.

The default jobs can be found here:

For examples and explanation please visit this wiki page:

Add your custom jobs under the following line:
---------------------------------------------------------------------------]]

--------------------------- EXEMPLES_by_gautias----------------------------
-- TEAM_(le nom de ta TEAM exemple) : TEAM_CIVIL = DarkRP.createJob("le nom de ton jobs", {
-- color = Color(20, 150, 20, 255), (la couleur que ton jobs vas avoir dans le TAB)
-- model = "models/player/zelpa/male_01.mdl", (le models donc ton skin de ton personnage)
-- description = [[]],
-- weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"}, (ce qu'il vas voir dans la molette)
-- command = "gdc", (la commande de ta TEAM donc exemples :civil) (EN MINUSCULE)
-- max = 2, (le nombre de personnes qu'il pourra venir civil ou autre)
-- salary = 10, (le salaire)
-- admin = 0, (NE PAS TOUCHER)
-- vote = false, (ci il dois etre voter avant de devenir ce jobs)
-- hasLicense = false, (NE PAS TOUCHER)
-- candemote = false, (NE PAS TOUCHER)
-- category = "Citizens", (la catégorie dans ton F4)


TEAM_CITIZEN = DarkRP.createJob("Civil", {
color = Color(20, 150, 20, 255),
model = {
"models/player/zelpa/male_01.mdl",
"models/player/zelpa/male_02.mdl",
"models/player/zelpa/male_03.mdl",
"models/player/zelpa/male_04.mdl",
"models/player/zelpa/male_05.mdl",
"models/player/zelpa/male_06.mdl",
"models/player/zelpa/male_07.mdl",
"models/player/zelpa/male_08.mdl",
"models/player/zelpa/male_09.mdl",
"models/player/zelpa/male_10.mdl",
"models/player/zelpa/male_11.mdl",
},
description = [[Vous Voter...ect]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "citizens",
max = 0,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
})

TEAM_Maire = DarkRP.createJob("Maire", {
color = Color(17, 119, 17, 255),
model = "models/fearless/mayor1.mdl",
"models/fearless/mayor2.mdl",
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "mayors",
category = "Citizens",
max = 1,
salary = 80,
admin = 0,
vote = true,
hasLicense = false,
mayor = true,

})


TEAM_COOKE = DarkRP.createJob("Cuisiner", {
color = Color(17, 119, 17, 255),
model = {"models/fearless/chef1.mdl",
"models/fearless/chef2.mdl"
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "cooke",
max = 2,
salary = 40,
admin = 0,
vote = false,
hasLicense = false,
cook = true,
})

TEAM_ABLC = DarkRP.createJob("Ambulancier", {
color = Color(20, 150, 20, 255),
model = {
"models/player/portal/male_09_medic.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup","med_kit"},
command = "ablc",
max = 2,
salary = 30,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens",
})

TEAM_QCL = DarkRP.createJob("Quincaillerie", {
color = Color(20, 150, 20, 255),
model = {
"models/player/zelpa/male_01.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "qlc",
max = 2,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
})

TEAM_VA = DarkRP.createJob("Vendeur Armes", {
color = Color(20, 150, 20, 255),
model = {
"models/player/arnold_schwarzenegger.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "va",
max = 2,
salary = 35,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
})

TEAM_TAXI = DarkRP.createJob("Taxi", {
color = Color(20, 150, 20, 255),
model = {
"models/player/zelpa/male_01.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "taxi",
max = 2,
salary = 30,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
})

TEAM_CDB = DarkRP.createJob("Chauffeur de bus", {
color = Color(20, 150, 20, 255),
model = {
"models/player/suits/male_01_shirt.mdl",
"models/player/suits/male_02_shirt.mdl",
"models/player/suits/male_03_shirt.mdl",
"models/player/suits/male_04_shirt.mdl",
"models/player/suits/male_05_shirt.mdl",
"models/player/suits/male_06_shirt.mdl",
"models/player/suits/male_07_shirt.mdl",
"models/player/suits/male_08_shirt.mdl",
"models/player/suits/male_09_shirt.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "cdb",
max = 2,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
})

TEAM_GDC = DarkRP.createJob("Garde du Corp", {
color = Color(20, 150, 20, 255),
model = {
"models/player/guard_pack/guard_01.mdl",
"models/player/guard_pack/guard_02.mdl",
"models/player/guard_pack/guard_03.mdl",
"models/player/guard_pack/guard_04.mdl",
"models/player/guard_pack/guard_05.mdl",
"models/player/guard_pack/guard_06.mdl",
"models/player/guard_pack/guard_07.mdl",
"models/player/guard_pack/guard_08.mdl",
"models/player/guard_pack/guard_09.mdl",
},

description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "gdc",
max = 4,
salary = 55,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
-- Put your Lua here
--[[---------------------------------------------------------------------------
DarkRP custom jobs
---------------------------------------------------------------------------
This file contains your custom jobs.
This file should also contain jobs from DarkRP that you edited.

Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
Once you've done that, copy and paste the job to this file and edit it.

The default jobs can be found here:

For examples and explanation please visit this wiki page:

Add your custom jobs under the following line:
---------------------------------------------------------------------------]]

--------------------------- EXEMPLES_by_gautias----------------------------
-- TEAM_(le nom de ta TEAM exemple) : TEAM_CIVIL = DarkRP.createJob("le nom de ton jobs", {
-- color = Color(20, 150, 20, 255), (la couleur que ton jobs vas avoir dans le TAB)
-- model = "models/player/zelpa/male_01.mdl", (le models donc ton skin de ton personnage)
-- description = [[]],
-- weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"}, (ce qu'il vas voir dans la molette)
-- command = "gdc", (la commande de ta TEAM donc exemples :civil) (EN MINUSCULE)
-- max = 2, (le nombre de personnes qu'il pourra venir civil ou autre)
-- salary = 10, (le salaire)
-- admin = 0, (NE PAS TOUCHER)
-- vote = false, (ci il dois etre voter avant de devenir ce jobs)
-- hasLicense = false, (NE PAS TOUCHER)
-- candemote = false, (NE PAS TOUCHER)
-- category = "Citizens", (la catégorie dans ton F4)


TEAM_CITIZEN = DarkRP.createJob("Civil", {
color = Color(20, 150, 20, 255),
model = {
"models/player/zelpa/male_01.mdl",
"models/player/zelpa/male_02.mdl",
"models/player/zelpa/male_03.mdl",
"models/player/zelpa/male_04.mdl",
"models/player/zelpa/male_05.mdl",
"models/player/zelpa/male_06.mdl",
"models/player/zelpa/male_07.mdl",
"models/player/zelpa/male_08.mdl",
"models/player/zelpa/male_09.mdl",
"models/player/zelpa/male_10.mdl",
"models/player/zelpa/male_11.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "citizens",
max = 0,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
})

TEAM_MAIRE = DarkRP.createJob("Maire", {
color = Color(17, 119, 17, 255),
model = {
"models/fearless/mayor1.mdl",
"models/fearless/mayor2.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "mayors",
category = "Citizens",
max = 1,
salary = 80,
admin = 0,
vote = true,
hasLicense = false,
mayor = true,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})


TEAM_COOKE = DarkRP.createJob("Cuisiner", {
color = Color(17, 119, 17, 255),
model = {"models/fearless/chef1.mdl",
"models/fearless/chef2.mdl"
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "cooke",
max = 2,
salary = 40,
admin = 0,
vote = false,
hasLicense = false,
cook = true,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})

TEAM_ABLC = DarkRP.createJob("Ambulancier", {
color = Color(20, 150, 20, 255),
model = {
"models/player/portal/male_09_medic.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup","med_kit"},
command = "ablc",
max = 2,
salary = 30,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})

TEAM_QCL = DarkRP.createJob("Quincaillerie", {
color = Color(20, 150, 20, 255),
model = {
"models/player/zelpa/male_01.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "qlc",
max = 2,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})

TEAM_VA = DarkRP.createJob("Vendeur Armes", {
color = Color(20, 150, 20, 255),
model = {
"models/player/arnold_schwarzenegger.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "va",
max = 2,
salary = 35,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})

TEAM_TAXI = DarkRP.createJob("Taxi", {
color = Color(20, 150, 20, 255),
model = {
"models/player/zelpa/male_01.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "taxi",
max = 2,
salary = 30,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})

TEAM_CDB = DarkRP.createJob("Chauffeur de bus", {
color = Color(20, 150, 20, 255),
model = {
"models/player/suits/male_01_shirt.mdl",
"models/player/suits/male_02_shirt.mdl",
"models/player/suits/male_03_shirt.mdl",
"models/player/suits/male_04_shirt.mdl",
"models/player/suits/male_05_shirt.mdl",
"models/player/suits/male_06_shirt.mdl",
"models/player/suits/male_07_shirt.mdl",
"models/player/suits/male_08_shirt.mdl",
"models/player/suits/male_09_shirt.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "cdb",
max = 2,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})

TEAM_GDC = DarkRP.createJob("Garde du Corp", {
color = Color(20, 150, 20, 255),
model = {
"models/player/guard_pack/guard_01.mdl",
"models/player/guard_pack/guard_02.mdl",
"models/player/guard_pack/guard_03.mdl",
"models/player/guard_pack/guard_04.mdl",
"models/player/guard_pack/guard_05.mdl",
"models/player/guard_pack/guard_06.mdl",
"models/player/guard_pack/guard_07.mdl",
"models/player/guard_pack/guard_08.mdl",
"models/player/guard_pack/guard_09.mdl",
},

description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup"},
command = "gdc",
max = 4,
salary = 55,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})

---------------------Gouvernement---------------------

TEAM_COMMISSAIRE = DarkRP.createJob("Commssaire", {
color = Color(20, 150, 20, 255),
model = {
"models/portal2/patrol_02.mdl",
"models/portal2/patrol_04.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 = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup","fas2_deagle","stungun","fas2_mp5k"},
command = "commisaire",
max = 1,
salary = 75,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})

TEAM_POLICE = DarkRP.createJob("Police", {
color = Color(20, 150, 20, 255),
model = {
"models/fear/player/portal/male_1.mdl",
"models/fear/player/portal/male_2.mdl",
"models/fear/player/portal/male_3.mdl",
"models/fear/player/portal/male_4.mdl",
"models/fear/player/portal/male_5.mdl",
"models/fear/player/portal/male_6.mdl",

},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup","fas2_deagle","stungun"},
command = "police",
max = 8,
salary = 55,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})

TEAM_GIGN = DarkRP.createJob("GIGN", {
color = Color(20, 150, 20, 255),
model = {
"models/player/pmc_1/pmc__01.mdl",
"models/player/pmc_1/pmc__02.mdl",
"models/player/pmc_1/pmc__04.mdl",
"models/player/pmc_1/pmc__05.mdl",
"models/player/pmc_1/pmc__07.mdl",
"models/player/pmc_1/pmc__08.mdl",
"models/player/pmc_6/pmc__14.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup","fas2_glock20","stungun","fas2_mp5sd6"},
command = "gign",
max = 5,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})

TEAM_BAC = DarkRP.createJob("Bac", {
color = Color(20, 150, 20, 255),
model = {
"models/player/spike/itzblitzhd.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup","fas2_glock20","stungun"},
command = "bac",
max = 3,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})

TEAM_TEL = DarkRP.createJob("Vendeur de smartphone", {
color = Color(255, 0, 0, 255),
model = {"models/player/spike/itzblitzhd.mdl",},
description = [[Votre rôle est de ventre des téléphones]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys"},
command = "vendeurdetelephone",
max = 3,
salary = 35,
admin = 0,
vote = false,
hasLicense = false,
candemote = true

})
--[[---------------------------------------------------------------------------
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,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_MOB)

})

---------------------Gouvernement---------------------

TEAM_COMMISSAIRE = DarkRP.createJob("Commssaire", {
color = Color(20, 150, 20, 255),
model = {
"models/portal2/patrol_02.mdl",
"models/portal2/patrol_04.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 = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup","fas2_deagle","stungun","fas2_mp5k"},
command = "commisaire",
max = 1,
salary = 75,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})

TEAM_POLICE = DarkRP.createJob("Police", {
color = Color(20, 150, 20, 255),
model = {
"models/fear/player/portal/male_1.mdl",
"models/fear/player/portal/male_2.mdl",
"models/fear/player/portal/male_3.mdl",
"models/fear/player/portal/male_4.mdl",
"models/fear/player/portal/male_5.mdl",
"models/fear/player/portal/male_6.mdl",

},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup","fas2_deagle","stungun"},
command = "police",
max = 8,
salary = 55,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})

TEAM_GIGN = DarkRP.createJob("GIGN", {
color = Color(20, 150, 20, 255),
model = {
"models/player/pmc_1/pmc__01.mdl",
"models/player/pmc_1/pmc__02.mdl",
"models/player/pmc_1/pmc__04.mdl",
"models/player/pmc_1/pmc__05.mdl",
"models/player/pmc_1/pmc__07.mdl",
"models/player/pmc_1/pmc__08.mdl",
"models/player/pmc_6/pmc__14.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup","fas2_glock20","stungun","fas2_mp5sd6"},
command = "gign",
max = 5,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})

TEAM_BAC = DarkRP.createJob("Bac", {
color = Color(20, 150, 20, 255),
model = {
"models/player/spike/itzblitzhd.mdl",
},
description = [[]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys", "itemstore_pickup","fas2_glock20","stungun"},
command = "bac",
max = 3,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Un ****** a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Un ***** est mort et a ete demote.")
end
end
})

TEAM_TEL = DarkRP.createJob("Vendeur de smartphone", {
color = Color(255, 0, 0, 255),
model = {"models/player/spike/itzblitzhd.mdl",},
description = [[Votre rôle est de ventre des téléphones]],
weapons = {"weapon_fists", "weapon_arc_atmcard", "weapon_keycard", "weapon_adv_keys"},
command = "vendeurdetelephone",
max = 3,
salary = 35,
admin = 0,
vote = false,
hasLicense = false,
candemote = true
})
--[[---------------------------------------------------------------------------
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,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_MOB)
Tu as 2 jobs maire.
 
  • Initiateur de la discussion
J

julios123

Geek suprême
Messages
58
Score réaction
4
Points
100
merci je viens de voir ma grosse faute ah la la merci quand même
 
NoaGamingFR

NoaGamingFR

Wait :)
Messages
3 650
Score réaction
625
Points
340
julios123 à dit:
merci je viens de voir ma grosse faute ah la la merci quand même
No problemo
 
  • Initiateur de la discussion
J

julios123

Geek suprême
Messages
58
Score réaction
4
Points
100
j'ai une errreur lua maintenant
15184
 
  • Initiateur de la discussion
J

julios123

Geek suprême
Messages
58
Score réaction
4
Points
100
voici mon code
15185
 
NoaGamingFR

NoaGamingFR

Wait :)
Messages
3 650
Score réaction
625
Points
340
julios123 à dit:
voici mon code
Regarde la pièce jointe 15185
Tu ne sait pas traduire ? Je vais pas tout te faire, il suffit de lire "Ce métier n'as pas de commande unique" -> Un autre métier as la même commande que le commissaire.

Après vérification, tu as 2 métiers comissaires.
 
Discord d'entraide
Rejoignz-nous sur Discord