Des que je rajoute un job dans le job.lua sa bug

  • Initiateur de la discussion Ronspy_sss
  • Date de début
  • Initiateur de la discussion
R

Ronspy_sss

Têtard
Messages
7
Score réaction
0
Points
5
En gros dès que je rajoute un job dans le job.lua sa bug genre je relance le serveur et sa me met nil.value et on apparait sous la map avec le métier nil et notre player model c'est une statue et on a pas de physgun pourtant j'ai d'autre métier et sa a marchais aider moi ^^
 
Cleazyy

Cleazyy

Geek suprême
Messages
141
Score réaction
9
Points
135
Ronspy_sss à dit:
En gros dès que je rajoute un job dans le job.lua sa bug genre je relance le serveur et sa me met nil.value et on apparait sous la map avec le métier nil et notre player model c'est une statue et on a pas de physgun pourtant j'ai d'autre métier et sa a marchais aider moi ^^
C'est que ton code n'est pas bon, envoie ton fichier job.lua
 
  • Initiateur de la discussion
R

Ronspy_sss

Têtard
Messages
7
Score réaction
0
Points
5
Cleazyy à dit:
C'est que ton code n'est pas bon, envoie ton fichier job.lua
TEAM_CITIZEN = DarkRP.createJob("Citoyen", {
color = Color(20, 150, 20, 255),
model = {
"models/player/Group01/Female_01.mdl",
"models/player/Group01/Female_02.mdl",
"models/player/Group01/Female_03.mdl",
"models/player/Group01/Female_04.mdl",
"models/player/Group01/Female_06.mdl",
"models/player/group01/male_01.mdl",
"models/player/Group01/Male_02.mdl",
"models/player/Group01/male_03.mdl",
"models/player/Group01/Male_04.mdl",
"models/player/Group01/Male_05.mdl",
"models/player/Group01/Male_06.mdl",
"models/player/Group01/Male_07.mdl",
"models/player/Group01/Male_08.mdl",
"models/player/Group01/Male_09.mdl"
},
description = [[Vous êtes une personne normal]],
weapons = {"idcard","weapon_fists","weapon_arc_atmcard","weapon_arc_phone"},
command = "citizen",
max = 0,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens",
})


TEAM_VIOLEUR = DarkRP.createJob("Violeur", {
color = Color(69, 255, 0, 255),
model = {"models/player/Group01/male_04.mdl"},
description = [[Vous êtes un gros fils de pute faites vous plaize :) !]],
weapons = {"idcard", "weapon_rape","weapon_arc_atmcard","weapon_arc_phone"},
command = "violeur",
max = 1,
salary = 400,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens"
})


TEAM_POLICE = DarkRP.createJob("Agent De Police", {
color = Color(25, 25, 170, 255),
model = {"models/player/santosrp/male_02_santosrp.mdl", "models/player/santosrp/male_04_santosrp.mdl", "models/player/santosrp/male_05_santosrp.mdl", "models/player/santosrp/male_06_santosrp.mdl", "models/player/santosrp/male_07_santosrp.mdl"},
description = [[Vous faites parti du gouvernement,
vous devez proteger la ville des personne qui ne respecte pas le code civil]],
weapons = {"arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker", "idcard","m9k_g36","m9k_colt1911","pass_police_nationale","weapon_fists","guigui_handcuffs","realrbn_tazer_mr","weapon_arc_atmcard","lockpick","weapon_arc_phone"},
command = "cp",
max = 8,
salary = GAMEMODE.Config.normalsalary * 10.45,
admin = 0,
vote = false,
hasLicense = true,
ammo = {
["pistol"] = 60,
},
category = "Civil Protection",
})


TEAM_BAC = DarkRP.createJob("Agent de la Bac", {
color = Color(0, 255, 129, 255),
model = {
"models/player/Group01/Female_01.mdl",
"models/player/group01/male_01.mdl"
},
description = [[Vous êtes un agent infiltrer du gouvernement surveiller les citoyen à la trace.]],
weapons = {"idcard", "arrest_stick", "unarrest_stick", "stunstick", "door_ram", "weaponchecker", "m9k_colt1911", "pass_police_nationale", "weapon_fists", "guigui_handcuffs", "weapon_arc_atmcard", "lockpick", "weapon_arc_phone"},
command = "bac",
max = 4,
salary = 800,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
category = "Civil Protection"
})


TEAM_GANG = DarkRP.createJob("Gangster", {
color = Color(75, 75, 75, 255),
model = {
"models/player/Group03/Female_01.mdl",
"models/player/Group03/Female_02.mdl",
"models/player/Group03/Female_03.mdl",
"models/player/Group03/Female_04.mdl",
"models/player/Group03/Female_06.mdl",
"models/player/group03/male_01.mdl",
"models/player/Group03/Male_02.mdl",
"models/player/Group03/male_03.mdl",
"models/player/Group03/Male_04.mdl",
"models/player/Group03/Male_05.mdl",
"models/player/Group03/Male_06.mdl",
"models/player/Group03/Male_07.mdl",
"models/player/Group03/Male_08.mdl",
"models/player/Group03/Male_09.mdl"},
description = [[Vous êtes une personne sans pitié vous avez crée un réseaux,
De gang.]],
weapons = {"idcard","weapon_fists","weapon_arc_atmcard","weapon_arc_phone"},
command = "gangster",
max = 4,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
category = "Gangsters",
})


TEAM_STAFF = DarkRP.createJob("Staff En Service", {
color = Color(173, 163, 163, 255),
model = {"models/player/Group01/male_04.mdl"},
description = [[STAFF ]],
weapons = {"idcard", "weapon_fists", "weapon_arc_atmcard", "weapon_arc_phone"},
command = "staff",
max = 0,
salary = 9000,
admin = 2,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens"
})


TEAM_MOB = DarkRP.createJob("Tueur à gage", {
color = Color(25, 25, 25, 255),
model = "models/player/bond.mdl",
description = [[Vous êtes un homme de ménage
so on peut dire sa ...]],
weapons = {"lockpick", "idcard","m9k_scoped_taurus","weapon_fists","weapon_arc_atmcard","weapon_arc_phone"},
command = "mobboss",
max = 3,
salary = GAMEMODE.Config.normalsalary * 1.34,
admin = 0,
vote = false,
hasLicense = false,
category = "Gangsters",
})

TEAM_GUN = DarkRP.createJob("Vendeur D'arme", {
color = Color(255, 140, 0, 255),
model = "models/player/monk.mdl",
description = [[Vous donnez des armes contre de l'argent vous pouvez être un Vendeur
légal et demandez la license d'arme ou au contraire être dans l'illégal et ne
pas demander de license]],
weapons = {"idcard","weapon_fists","weapon_arc_atmcard","weapon_arc_phone"},
command = "gundealer",
max = 4,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
category = "Citizens",
})

TEAM_MEDIC = DarkRP.createJob("Medecin", {
color = Color(47, 79, 79, 255),
model = "models/player/kleiner.mdl",
description = [[Vous soignez les personne avec votre MedicKit]],
weapons = {"med_kit","idcard","weapon_fists","weapon_arc_atmcard","weapon_arc_phone"},
command = "medic",
max = 3,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
medic = true,
category = "Citizens",
})

TEAM_CHIEF = DarkRP.createJob("Comissaire", {
color = Color(20, 20, 255, 255),
model = "models/player/santosrp/male_09_santosrp.mdl",
description = [[Vous faites comme les policier mais vous êtes le chef !]],
weapons = {"arrest_stick", "unarrest_stick", "m9k_deagle", "stunstick", "door_ram", "weaponchecker","idcard","weapon_fists","m9k_m4a1","guigui_handcuffs","realrbn_tazer_mr","pass_police_nationale","weapon_arc_atmcard","lockpick","weapon_arc_phone"},
command = "chief",
max = 1,
salary = GAMEMODE.Config.normalsalary * 1.67,
admin = 0,
vote = false,
hasLicense = true,
chief = true,
NeedToChangeFrom = TEAM_POLICE,
ammo = {
["pistol"] = 60,
},
category = "Civil Protection",
})

TEAM_MAYOR = DarkRP.createJob("Maire", {
color = Color(150, 20, 20, 255),
model = "models/player/breen.mdl",
description = [[Vous êtes le maire vous diriger la ville]],
weapons = {"idcard","weapon_fists","weapon_arc_atmcard","weapon_arc_phone"},
command = "mayor",
max = 1,
salary = GAMEMODE.Config.normalsalary * 1.89,
admin = 0,
vote = true,
hasLicense = false,
mayor = true,
category = "Civil Protection",
})

TEAM_HOBO = DarkRP.createJob("SDF", {
color = Color(80, 45, 0, 255),
model = "models/jessev92/player/l4d/m9-hunter.mdl",
description = [[Vous êtes une personne Sans Abri Fixe]],
weapons = {"weapon_bugbait","weapon_fists","weapon_arc_atmcard","weapon_arc_phone"},
command = "hobo",
max = 3,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
hobo = true,
category = "Citizens",
})


TEAM_SECURITER = DarkRP.createJob("Agent de Sécurité", {
color = Color(191, 191, 191, 255),
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é vous pouvez trouver des personne pour qui travailler]],
weapons = {"idcard", "weapon_arc_atmcard", "weapon_arc_phone", "weapon_fists"},
command = "vigil",
max = 4,
salary = 550,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
category = "Citizens"
})


TEAM_VOLEUR = DarkRP.createJob("Voleur", {
color = Color(34, 85, 85, 255),
model = {
"models/player/Group01/Female_01.mdl",
"models/player/Group01/Female_02.mdl",
"models/player/Group01/Female_03.mdl",
"models/player/Group01/Female_04.mdl",
"models/player/Group01/Female_06.mdl",
"models/player/group01/male_01.mdl",
"models/player/Group01/Male_02.mdl",
"models/player/Group01/male_03.mdl",
"models/player/Group01/Male_04.mdl",
"models/player/Group01/Male_05.mdl",
"models/player/Group01/Male_06.mdl",
"models/player/Group01/Male_07.mdl",
"models/player/Group01/Male_08.mdl",
"models/player/Group01/Male_09.mdl"
},
description = [[Vous êtes un voleur à vous de faire votre propre tunes]],
weapons = {"idcard", "keypad_cracker", "lockpick","weapon_fists","weapon_arc_atmcard","weapon_arc_phone"},
command = "voleur",
max = 4,
salary = 250,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens"
})



TEAM_GARDEMAIRE = DarkRP.createJob("Garde Du Maire", {
color = Color(0, 242, 36, 255),
model = {"models/player/smith.mdl"},
description = [[Vous devez protéger le Maire comme votre propre vie]],
weapons = {"m9k_colt1911", "m9k_m416","idcard","weapon_fists","realrbn_tazer_mr","weapon_arc_atmcard","weapon_arc_phone"},
command = "gardemaire",
max = 4,
salary = 600,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
category = "Civil Protection"
})

TEAM_CRIPTS = DarkRP.createJob("Criptz", {
color = Color(0, 59, 255, 255),
model = {
"models/player/cripz/slow_1.mdl",
"models/player/cripz/slow_2.mdl",
"models/player/cripz/slow_3.mdl"
},
description = [[Vous faites parti d'un gang]],
weapons = {"idcard","weapon_fists","weapon_arc_atmcard","weapon_arc_phone"},
command = "cripts",
max = 4,
salary = 300,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Gangsters"
})

TEAM_BLOODZ = DarkRP.createJob("Bloodz", {
color = Color(255, 0, 0, 255),
model = {
"models/player/bloodz/slow_1.mdl",
"models/player/bloodz/slow_2.mdl",
"models/player/bloodz/slow_3.mdl"
},
description = [[Vous faites parti d'un gang]],
weapons = {"idcard","weapon_fists","weapon_arc_atmcard","weapon_arc_phone"},
command = "bloodz",
max = 4,
salary = 300,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Gangsters"
})

TEAM_MAFIA = DarkRP.createJob("Mafia", {
color = Color(0, 0, 0, 255),
model = {
"models/humans/mafia/male_02.mdl",
"models/humans/mafia/male_04.mdl",
"models/humans/mafia/male_06.mdl",
"models/humans/mafia/male_07.mdl",
"models/humans/mafia/male_08.mdl",
"models/humans/mafia/male_09.mdl"
},
description = [[Vous faites parti d'un gang]],
weapons = {"idcard","weapon_fists","weapon_arc_atmcard","weapon_arc_phone"},
command = "mafia",
max = 4,
salary = 300,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Gangsters"
})

TEAM_CHEFMAFIA = DarkRP.createJob("Parrain de la Mafia", {
color = Color(0, 0, 0, 255),
model = {"models/humans/mafia/male_02.mdl"},
description = [[Vous êtes le parrain de la mafia à vous de créer l'empire de la mafia]],
weapons = {"idcard","weapon_fists","weapon_arc_atmcard","weapon_arc_phone"},
command = "parrain",
max = 1,
salary = 400,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Gangsters"

})

TEAM_GIGN = DarkRP.createJob("GIGN", {
color = Color(17, 0, 255, 255),
model = {"models/dauge/bf3_gign.mdl"},
description = [[Vous faites parti du Groupe d'intervention de la Gendarmerie nationale]],
weapons = {"m9k_scar", "idcard", "door_ram", "lockpick", "m9k_m416","weapon_fists","guigui_handcuffs","realrbn_tazer_mr","weaponchecker","pass_police_nationale","arrest_stick","unarrest_stick","stunstick","m9k_m61_frag","pocket","weapon_arc_atmcard","lockpick","weapon_arc_phone"},
command = "gign",
max = 8,
salary = 900,
admin = 0,
vote = true,
hasLicense = true,
candemote = false,
category = "Civil Protection"
})

TEAM_HACKEUR = DarkRP.createJob("Hackeur", {
color = Color(255, 0, 0, 255),
model = {"models/player/Group01/male_04.mdl"},
description = [[Vous êtes hackeur hacker des ATM !]],
weapons = {"idcard", "weapon_fists", "weapon_arc_atmcard", "weapon_arc_phone", "weapon_arc_atmhack"},
command = "hackeur",
max = 2,
salary = 400,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(1)
end
})

Sans le métier hackeur tous marche bien mais des que je rajoute tous autre métier sa fais cette erreur
 
Mr Akitaman

Mr Akitaman

Geek
Messages
22
Score réaction
8
Points
80
Quel est l'erreur afficher dans la console ?
 
  • Initiateur de la discussion
R

Ronspy_sss

Têtard
Messages
7
Score réaction
0
Points
5
Mr Akitaman à dit:
Quel est l'erreur afficher dans la console ?
J'ai tout refait le job.lua j'ai totu refait les métier et sa le refait donc sa vient pas des jobs mais plus du job.lua en général je pense j'ai du supprimer un truc qui fallait pas chez pas
 
  • Initiateur de la discussion
R

Ronspy_sss

Têtard
Messages
7
Score réaction
0
Points
5
Mr Akitaman à dit:
Quel est l'erreur afficher dans la console ?
tien l'erreur : [ERROR] gamemodes/darkrp/gamemode/libraries/simplerr.lua:387: attempt to index local 'info' (a nil value)
 
  • Initiateur de la discussion
R

Ronspy_sss

Têtard
Messages
7
Score réaction
0
Points
5
VOICI MON NOUVEAU JOB.LUA QUI NE MARCHE TOUJOURS PAS :

--[[---------------------------------------------------------------------------
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:
---------------------------------------------------------------------------]]



TEAM_CITIZEN = DarkRP.createJob("Citoyen", {
color = Color(20, 150, 20, 255),
model = {
"models/player/Group01/Female_01.mdl",
"models/player/Group01/Female_02.mdl",
"models/player/Group01/Female_03.mdl",
"models/player/Group01/Female_04.mdl",
"models/player/Group01/Female_06.mdl",
"models/player/group01/male_01.mdl",
"models/player/Group01/Male_02.mdl",
"models/player/Group01/male_03.mdl",
"models/player/Group01/Male_04.mdl",
"models/player/Group01/Male_05.mdl",
"models/player/Group01/Male_06.mdl",
"models/player/Group01/Male_07.mdl",
"models/player/Group01/Male_08.mdl",
"models/player/Group01/Male_09.mdl"
},
description = [[Vous êtes une personne normal]],
weapons = {"idcard","weapon_fists","weapon_arc_atmcard","weapon_arc_phone"},
command = "citizen",
max = 0,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citoyen",
})

TEAM_GUN = DarkRP.createJob("Vendeur D'arme", {
color = Color(255, 140, 0, 255),
model = "models/player/monk.mdl",
description = [[Vous donnez des armes contre de l'argent vous pouvez être un Vendeur
légal et demandez la license d'arme ou au contraire être dans l'illégal et ne
pas demander de license]],
weapons = {"idcard","weapon_fists","weapon_arc_atmcard","weapon_arc_phone"},
command = "gundealer",
max = 4,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
category = "Citoyen",
})

TEAM_POLICE = DarkRP.createJob("Policier", {
color = Color(0, 91, 255, 255),
model = {
"models/player/santosrp/male_02_santosrp.mdl",
"models/player/santosrp/male_04_santosrp.mdl",
"models/player/santosrp/male_05_santosrp.mdl",
"models/player/santosrp/male_06_santosrp.mdl",
"models/player/santosrp/male_07_santosrp.mdl",
"models/player/santosrp/male_08_santosrp.mdl",
"models/player/santosrp/male_09_santosrp.mdl"
},
description = [[Vous êtes policier protéger la ville !]],
weapons = {"idcard", "weapon_fists", "weapon_arc_atmcard", "weapon_arc_phone", "pass_police_nationale", "m9k_colt1911", "m9k_g36"},
command = "policier",
max = 7,
salary = 600,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
category = "Gouvernement",
ammo = {
["pistol"] = 200
},
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(100)
end
})

TEAM_VIOLEUR = DarkRP.createJob("Violeur", {
color = Color(0, 255, 237, 255),
model = {"models/player/odessa.mdl"},
description = [[Vous êtes un violeur faites vous plaisir sexuellement]],
weapons = {"idcard", "weapon_fists", "weapon_arc_atmcard", "weapon_arc_phone", "weapon_rape"},
command = "violeur",
max = 1,
salary = 200,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citoyen",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(0)
end
})

TEAM_MEDIC = DarkRP.createJob("Médecin", {
color = Color(131, 255, 0, 255),
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"
},
description = [[Vous êtes un médecin soignez les personne ]],
weapons = {"idcard", "weapon_fists", "weapon_arc_atmcard", "weapon_arc_phone", "med_kit"},
command = "medic",
max = 4,
salary = 500,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citoyen",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(0)
end
})

TEAM_VOLEUR = DarkRP.createJob("Voleur", {
color = Color(131, 255, 0, 255),
model = {
"models/player/group01/male_01.mdl",
"models/player/Group01/Male_02.mdl",
"models/player/Group01/male_03.mdl",
"models/player/Group01/Male_04.mdl",
"models/player/Group01/Male_05.mdl",
"models/player/Group01/Male_06.mdl",
"models/player/Group01/Male_07.mdl",
"models/player/Group01/Male_08.mdl",
"models/player/Group01/Male_09.mdl"
},
description = [[Vous êtes voleur crochetez les batiment et le porte de voiture qui c'est vous aurez peut être des printers ?]],
weapons = {"idcard", "weapon_fists", "weapon_arc_atmcard", "weapon_arc_phone", "lockpick", "keypad_cracker"},
command = "voleur",
max = 2,
salary = 550,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citoyen",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(0)
end
})

TEAM_AGENT = DarkRP.createJob("Agent de sécurité", {
color = Color(255, 0, 0, 255),
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é faites vous embaucher ]],
weapons = {"idcard", "weapon_fists", "weapon_arc_atmcard", "weapon_arc_phone"},
command = "agent",
max = 4,
salary = 600,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Gouvernement",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(50)
end
})

TEAM_BAC = DarkRP.createJob("Bac", {
color = Color(0, 151, 255, 255),
model = {
"models/player/group01/male_01.mdl",
"models/player/Group01/Male_02.mdl",
"models/player/Group01/male_03.mdl",
"models/player/Group01/Male_04.mdl",
"models/player/Group01/Male_05.mdl",
"models/player/Group01/Male_06.mdl",
"models/player/Group01/Male_07.mdl",
"models/player/Group01/Male_08.mdl",
"models/player/Group01/Male_09.mdl"
},
description = [[Vous êtes un agent de police infiltré entant que citoyen faites vous recrutez dans des gang ou faites vous vendre de la drogues votre devise le flagrant délit]],
weapons = {"idcard", "weapon_fists", "weapon_arc_atmcard", "weapon_arc_phone", "m9k_colt1911"},
command = "bac",
max = 4,
salary = 600,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
category = "Gouvernement",
ammo = {
["pistol"] = 100
},
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(100)
end
})

TEAM_MAYOR = DarkRP.createJob("Maire", {
color = Color(48, 24, 206, 255),
model = {"models/player/breen.mdl"},
description = [[Vous êtes le maire vous dirigez la ville !]],
weapons = {"idcard", "weapon_fists", "weapon_arc_atmcard", "weapon_arc_phone"},
command = "maire",
max = 1,
salary = 900,
admin = 0,
vote = true,
hasLicense = true,
candemote = false,
category = "Gouvernement",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(0)
end
})

TEAM_GMAYOR = DarkRP.createJob("Grade du maire", {
color = Color(24, 121, 206, 255),
model = {"models/player/smith.mdl"},
description = [[Vous êtes le garde du maire veillez sur lui]],
weapons = {"idcard", "weapon_fists", "weapon_arc_atmcard", "weapon_arc_phone", "m9k_colt1911"},
command = "gardemaire",
max = 4,
salary = 850,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
category = "Gouvernement",
ammo = {
["pistol"] = 100
},
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(100)
end
})

TEAM_GIGN = DarkRP.createJob("GIGN", {
color = Color(24, 121, 206, 255),
model = {"models/player/raid/raid_04.mdl"},
description = [[Vous êtes le garde du maire veillez sur lui]],
weapons = {"idcard", "weapon_fists", "weapon_arc_atmcard", "weapon_arc_phone", "m9k_colt1911", "m9k_m4a1"},
command = "gardemaire",
max = 4,
salary = 1000,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
category = "Gouvernement",
ammo = {
["pistol"] = 100
},
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(150)
end
})

TEAM_GANG = DarkRP.createJob("Gangster", {
color = Color(41, 206, 24, 255),
model = {
"models/player/Group03/female_03.mdl",
"models/player/Group03/female_02.mdl",
"models/player/Group03/female_06.mdl"
},
description = [[Vous faites parti d'un gang]],
weapons = {"idcard", "weapon_fists", "weapon_arc_atmcard", "weapon_arc_phone"},
command = "gang",
max = 4,
salary = 500,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Gang",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(0)
end
})

TEAM_BLOODZ = DarkRP.createJob("Bloodz", {
color = Color(41, 206, 24, 255),
model = {
"models/player/bloodz/slow_1.mdl",
"models/player/bloodz/slow_2.mdl",
"models/player/bloodz/slow_3.mdl"
},
description = [[Vous faites parti du gang des bloodz]],
weapons = {"idcard", "weapon_fists", "weapon_arc_atmcard", "weapon_arc_phone"},
command = "bloodz",
max = 4,
salary = 500,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Gang",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(0)
end
})

TEAM_CRIPTZ = DarkRP.createJob("Criptz", {
color = Color(41, 206, 24, 255),
model = {
"models/player/cripz/slow_1.mdl",
"models/player/cripz/slow_2.mdl",
"models/player/cripz/slow_3.mdl"
},
description = [[Vous faites parti du gang des cirptz]],
weapons = {"idcard", "weapon_fists", "weapon_arc_atmcard", "weapon_arc_phone"},
command = "criptz",
max = 4,
salary = 500,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Gang",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(0)
end
})

--[[---------------------------------------------------------------------------
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] = false,
[TEAM_MAYOR] = true,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_MOB)
 
  • Initiateur de la discussion
R

Ronspy_sss

Têtard
Messages
7
Score réaction
0
Points
5
up
 
ach761

ach761

Nouveau né
Messages
1
Score réaction
0
Points
15
  • Initiateur de la discussion
R

Ronspy_sss

Têtard
Messages
7
Score réaction
0
Points
5
up
 
Discord d'entraide
Rejoignz-nous sur Discord