Lua Error en DarkRP

  • Initiateur de la discussion Requinou
  • Date de début
  • Initiateur de la discussion
Requinou

Requinou

Bambi
Messages
39
Score réaction
0
Points
35
Bonjour , j'ai un lua error , je ne sais pas quoi faire , je vous donne le code et en bas le message d'erreur :

Code:
--[[---------------------------------------------------------------------------
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:
https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua
For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
Add your custom jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_Citoyen = DarkRP.createJob("Citoyen", { color = Color(17, 235, 13, 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_08.mdl", "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", "models/player/zelpa/female_01.mdl", "models/player/zelpa/female_02.mdl", "models/player/zelpa/female_03.mdl", "models/player/zelpa/female_04.mdl", "models/player/zelpa/female_05.mdl", "models/player/zelpa/female_06.mdl", "models/player/zelpa/female_07.mdl", "models/player/zelpa/female_01_b.mdl", "models/player/zelpa/female_02_b.mdl", "models/player/zelpa/female_03_b.mdl", "models/player/zelpa/female_04_b.mdl", "models/player/zelpa/female_05_b.mdl", "models/player/zelpa/female_06_b.mdl", "models/player/zelpa/female_07_b.mdl" }, description = [[Vous devez survivre face aux zombies]], weapons = {}, command = "Citoyen", max = 0, salary = 50, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(0) end
})
TEAM_Marchand = DarkRP.createJob("Marchand", { color = Color(17, 235, 13, 255), model = {"models/joshua_graham/joshua_graham_pm.mdl"}, description = [[Équiper touts les citoyens, les soldats et les ennemies, votre but est de vous faire de l'argent.]], weapons = {}, command = "Marchand", max = 2, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(0) end
})
TEAM_Cuisinier = DarkRP.createJob("Cuisinier", { color = Color(17, 235, 13, 255), model = {"models/fearless/chef1.mdl", "models/fearless/chef2.mdl"}, description = [[Donner de la nourriture aux citoyens pour leur donner de la force.]], weapons = {}, command = "Cuisinier", max = 2, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(0) end
})
TEAM_Médecin = DarkRP.createJob("Médecin", { color = Color(17, 235, 13, 255), model = {"medic1", "medic2", "medic3", "medic4", "medic5", "medic6", "medic7", "medic8", "medic9", "medic10", "medic11", "medic12", "medic13", "medic14", "medic15"}, description = [[Soigner les citoyens pour qu'ils puissent rester en vie.]], weapons = {"med_kit"}, command = "Médecin", max = 2, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(0) end
})
TEAM_Gardiendelaville = DarkRP.createJob("Gardien de la ville", { color = Color(17, 235, 13, 255), model = {"models/player/arnold_schwarzenegger.mdl"}, description = [[Vous protéger les citoyens seulement dans la ville.]], weapons = {"fas2_deagle"}, command = "Gardien de la ville", max = 5, salary = 120, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(25) end
})
TEAM_Maire = DarkRP.createJob("Maire", { color = Color(17, 235, 13, 255), model = {"models/player/breen.mdl"}, description = [[Vous gouverner la ville pour que tout ce passe bien.]], weapons = {"fas2_deagle"}, command = "Maire", max = 1, salary = 150, admin = 0, vote = true, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(50) end
})
TEAM_Gardeducorp = DarkRP.createJob("Garde du corp", { color = Color(17, 235, 13, 255), model = {"models/player/portal/Male_01_security.mdl", "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 devez protéger un maximum le Maire.]], weapons = {"fas2_deagle"}, command = "Gardeducorp", max = 5, salary = 125, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(25) end
})
TEAM_recrueusarmy = DarkRP.createJob("Recrue - U.S ARMY", { color = Color(235, 199, 13, 255), model = {"models/player/Srgt.Shotup"}, description = [[Vous êtes une recrue de la U.S ARMY.]], weapons = {"fas2_glock20"}, command = "recrueusarmy", max = 10, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(50) end
})
TEAM_regimentsniper = DarkRP.createJob("Régiment sniper - U.S ARMY", { color = Color(235, 199, 13, 255), model = {"models/player/riot.mdl"}, description = [[Vous êtes un haut grader de la U.S ARMY.]], weapons = {"fas2_m21"}, command = "SniperUsarmy", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Sniper de l'U.S Army est mort !") end
})
TEAM_agentdelausarmy = DarkRP.createJob("Agent - U.S ARMY", { color = Color(235, 199, 13, 255), model = {"models/player/urban.mdl"}, description = [[Vous êtes un haut grader de la U.S ARMY.]], weapons = {"fas2_deagle"}, command = "agentdelausarmy", max = 5, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(100) PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Un Agent de l'U.S Army est mort !") end
})
TEAM_regimentassault = DarkRP.createJob("Régiment assault - U.S ARMY", { color = Color(235, 199, 13, 255), model = {"models/player/swat.mdl"}, description = [[Vous êtes un haut grader de la U.S ARMY.]], weapons = {"fas2_famas"}, command = "AsaultUsarmy", max = 1, salary = 142, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Regiement d'assault de l'U.S Army est mort !") end
})
TEAM_recrueari = DarkRP.createJob("Recrue - A.R.I", { color = Color(255, 0, 0, 255), model = {"models/mfc_new_heavy_npc.mdl", "models/MFC_New_Heavy.mdl", "models/mfc_new_npc.mdl", "models/mfc_new.mdl"}, description = [[Vous êtes une recrue de la A.R.I]], weapons = {"fas2_glock20"}, command = "recrueari", max = 10, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(50) end
})
TEAM_agentari = DarkRP.createJob("Agent - A.R.I", { color = Color(255, 0, 0, 255), model = {"models/minson97/bo2/seal_masked.mdl",
"models/minson97/bo2/seal.mdl"}, description = [[Vous êtes un haut grader de la A.R.I]], weapons = {"fas2_deagle"}, command = "agentari", max = 5, salary = 124, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(100) PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Un Agent de l'A.R.I est mort !") end
})
TEAM_commandoassault = DarkRP.createJob("Commando Assault - A.R.I", { color = Color(255, 0, 0, 255), model = {"models/player/auditor/r6s/thatcher.mdl"}, description = [[Vous êtes un au grader de la A.R.I]], weapons = {"fas2_famas"}, command = "assaultari", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Commande Assault A.R.I est mort !") end
})
TEAM_commandosniper = DarkRP.createJob("Commando Sniper - A.R.I", { color = Color(255, 0, 0, 255), model = {"models/player/US_Sniper_Aftermath.mdl"}, description = [[Vous êtes un au grader de la A.R.I]], weapons = {"fas2_m21"}, command = "sniperari", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Commando Sniper de l'A.R.I est mort !") end
})
TEAM_peste = DarkRP.createJob("Projet Peste", { color = Color(255, 0, 0, 255), model = {"models/player/plague_doktor/PLAYER_Plague_Doktor.mdl"}, description = [[Vous êtes le projets Peste , créer par les A.R.I , vous êtes grand et fort , vous vous battez uniquement au poings et a la grosse sulfateuse .Personne ne connait votre vrai nature .]], weapons = {"weapon_mini_gun_v3", "m9k_fists"}, command = "peste", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(300) ply:SetHealth(300) ply:SetArmor(200) ply:SetModelScale(1.15) ply:SetRunSpeed(350) PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Projet Peste est mort !!!")
end
})
TEAM_ARIGen = DarkRP.createJob("Général de l'ARI", { color = Color(255, 0, 0, 255), model = {"models/player/big_boss.mdl", "models/player/big_boss.mdl", "models/player/big_boss3.mdl", "models/player/big_boss4.mdl", "models/player/big_boss5.mdl", "models/player/big_boss6.mdl", "models/player/big_boss7.mdl"}, description = [[Vous êtes le général de l'ARI , son Fondateur , gouverner vos troupes et écrasez vos ennemis]], weapons = {"fas2_sks", "fas2_wakizashi", "fas2_rk95"}, command = "ARIGeneral", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(200) ply:SetHealth(200) ply:SetArmor(150) ply:SetRunSpeed(250) PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Général de l'A.R.I est mort !") end
})
TEAM_USARMYGen = DarkRP.createJob("Général de l'US Army", { color = Color(235, 199, 13, 255), model = {"models/player/riot.mdl"}, description = [[Vous êtes le général de l'US ARMY , gouverner vos troupes et écrasez vos ennemis]], weapons = {"fas2_sks", "fas2_wakizashi", "fas2_rk95"}, command = "USGeneral", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(200) ply:SetHealth(200) ply:SetArmor(150) ply:SetRunSpeed(250) PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Général de l'U.S Army est mort !!!") end
})
TEAM_robot = DarkRP.createJob("Projet Robot", { color = Color(235, 199, 13, 255), model = {"models/Killzone Mercenary/Helghast_Police_Trooper/Police_Trooper.mdl"}, description = [[Vous êtes le projets Robot , créer par l'U.S Army, vous êtes grand et fort , vous vous battez uniquement au poings et a la grosse sulfateuse .Vous êtes un robot sans aucun sentiments .]], weapons = {"weapon_mini_gun_v3", "m9k_fists"}, command = "robot", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(500) ply:SetHealth(500) ply:SetArmor(250) ply:SetModelScale(1.15) ply:SetRunSpeed(100) PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Projet Robot est mort !!!")
end
})
TEAM_CommandoInfiltre = DarkRP.createJob("Commando Espion A.R.I", { color = Color(255, 0, 0, 255), model = {"models/blacklist/spy1.mdl"}, description = [[Vous êtes le Commando Espion de l'A.R.I , camouflez vous pour éliminez vos ennemies , grace a votre modules d'invisibilité , vous êtes l'as de l'infiltration]], weapons = {"weapon_camo", "fas2_wakizashi", "fas2_ump45"}, command = "ARIEpion", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) ply:SetRunSpeed(250) PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Commando Espion de l'A.R.I est mort !") end
})
--[[ Generated using: DarkRP | Job Generator https://csite.io/tools/gmod-darkrp-job
--]]
--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_Citoyen
--[[---------------------------------------------------------------------------
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_recrueari] = true, [TEAM_agentari] = true, [TEAM_commandoassault] = true, [TEAM_commandosniper] = true,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_ARIGen)
Lua Error :

Code:
There is 1 Lua problem! Please check your console for more information!
[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 234.
The best help I can give you is this:
Right before the '}', Lua encountered something it could not make sense of.
Hints: - Did you forget something here? (Perhaps a closing bracket) - Is it a typo?
------- End of Simplerr error -------
 
ntrom

ntrom

Geek suprême
Messages
306
Score réaction
105
Points
100
att
 
  • Initiateur de la discussion
Requinou

Requinou

Bambi
Messages
39
Score réaction
0
Points
35
Vers où et quelle fonctions ?
 
  • Initiateur de la discussion
Requinou

Requinou

Bambi
Messages
39
Score réaction
0
Points
35
J'ai trouvé , je règles le prob je vous tien au courant
 
ntrom

ntrom

Geek suprême
Messages
306
Score réaction
105
Points
100
Essaye avec sa :
Code:
--[[---------------------------------------------------------------------------
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:
https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua
For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
Add your custom jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_Citoyen = DarkRP.createJob("Citoyen", { color = Color(17, 235, 13, 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_08.mdl", "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", "models/player/zelpa/female_01.mdl", "models/player/zelpa/female_02.mdl", "models/player/zelpa/female_03.mdl", "models/player/zelpa/female_04.mdl", "models/player/zelpa/female_05.mdl", "models/player/zelpa/female_06.mdl", "models/player/zelpa/female_07.mdl", "models/player/zelpa/female_01_b.mdl", "models/player/zelpa/female_02_b.mdl", "models/player/zelpa/female_03_b.mdl", "models/player/zelpa/female_04_b.mdl", "models/player/zelpa/female_05_b.mdl", "models/player/zelpa/female_06_b.mdl", "models/player/zelpa/female_07_b.mdl" }, description = [[Vous devez survivre face aux zombies]], weapons = {}, command = "Citoyen", max = 0, salary = 50, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(0) end
})
TEAM_Marchand = DarkRP.createJob("Marchand", { color = Color(17, 235, 13, 255), model = {"models/joshua_graham/joshua_graham_pm.mdl"}, description = [[Équiper touts les citoyens, les soldats et les ennemies, votre but est de vous faire de l'argent.]], weapons = {}, command = "Marchand", max = 2, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(0) end
})
TEAM_Cuisinier = DarkRP.createJob("Cuisinier", { color = Color(17, 235, 13, 255), model = {"models/fearless/chef1.mdl", "models/fearless/chef2.mdl"}, description = [[Donner de la nourriture aux citoyens pour leur donner de la force.]], weapons = {}, command = "Cuisinier", max = 2, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(0) end
})
TEAM_Médecin = DarkRP.createJob("Médecin", { color = Color(17, 235, 13, 255), model = {"medic1", "medic2", "medic3", "medic4", "medic5", "medic6", "medic7", "medic8", "medic9", "medic10", "medic11", "medic12", "medic13", "medic14", "medic15"}, description = [[Soigner les citoyens pour qu'ils puissent rester en vie.]], weapons = {"med_kit"}, command = "Médecin", max = 2, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(0) end
})
TEAM_Gardiendelaville = DarkRP.createJob("Gardien de la ville", { color = Color(17, 235, 13, 255), model = {"models/player/arnold_schwarzenegger.mdl"}, description = [[Vous protéger les citoyens seulement dans la ville.]], weapons = {"fas2_deagle"}, command = "Gardien de la ville", max = 5, salary = 120, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(25) end
})
TEAM_Maire = DarkRP.createJob("Maire", { color = Color(17, 235, 13, 255), model = {"models/player/breen.mdl"}, description = [[Vous gouverner la ville pour que tout ce passe bien.]], weapons = {"fas2_deagle"}, command = "Maire", max = 1, salary = 150, admin = 0, vote = true, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(50) end
})
TEAM_Gardeducorp = DarkRP.createJob("Garde du corp", { color = Color(17, 235, 13, 255), model = {"models/player/portal/Male_01_security.mdl", "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 devez protéger un maximum le Maire.]], weapons = {"fas2_deagle"}, command = "Gardeducorp", max = 5, salary = 125, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(25) end
})
TEAM_recrueusarmy = DarkRP.createJob("Recrue - U.S ARMY", { color = Color(235, 199, 13, 255), model = {"models/player/Srgt.Shotup"}, description = [[Vous êtes une recrue de la U.S ARMY.]], weapons = {"fas2_glock20"}, command = "recrueusarmy", max = 10, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(50) end
})
TEAM_regimentsniper = DarkRP.createJob("Régiment sniper - U.S ARMY", { color = Color(235, 199, 13, 255), model = {"models/player/riot.mdl"}, description = [[Vous êtes un haut grader de la U.S ARMY.]], weapons = {"fas2_m21"}, command = "SniperUsarmy", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) end PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Sniper de l'U.S Army est mort !") end
})
TEAM_agentdelausarmy = DarkRP.createJob("Agent - U.S ARMY", { color = Color(235, 199, 13, 255), model = {"models/player/urban.mdl"}, description = [[Vous êtes un haut grader de la U.S ARMY.]], weapons = {"fas2_deagle"}, command = "agentdelausarmy", max = 5, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(100) end PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Un Agent de l'U.S Army est mort !") end
})
TEAM_regimentassault = DarkRP.createJob("Régiment assault - U.S ARMY", { color = Color(235, 199, 13, 255), model = {"models/player/swat.mdl"}, description = [[Vous êtes un haut grader de la U.S ARMY.]], weapons = {"fas2_famas"}, command = "AsaultUsarmy", max = 1, salary = 142, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) end PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Regiement d'assault de l'U.S Army est mort !") end
})
TEAM_recrueari = DarkRP.createJob("Recrue - A.R.I", { color = Color(255, 0, 0, 255), model = {"models/mfc_new_heavy_npc.mdl", "models/MFC_New_Heavy.mdl", "models/mfc_new_npc.mdl", "models/mfc_new.mdl"}, description = [[Vous êtes une recrue de la A.R.I]], weapons = {"fas2_glock20"}, command = "recrueari", max = 10, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(50) end
})
TEAM_agentari = DarkRP.createJob("Agent - A.R.I", { color = Color(255, 0, 0, 255), model = {"models/minson97/bo2/seal_masked.mdl",
"models/minson97/bo2/seal.mdl"}, description = [[Vous êtes un haut grader de la A.R.I]], weapons = {"fas2_deagle"}, command = "agentari", max = 5, salary = 124, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(100) end PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Un Agent de l'A.R.I est mort !") end
})
TEAM_commandoassault = DarkRP.createJob("Commando Assault - A.R.I", { color = Color(255, 0, 0, 255), model = {"models/player/auditor/r6s/thatcher.mdl"}, description = [[Vous êtes un au grader de la A.R.I]], weapons = {"fas2_famas"}, command = "assaultari", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) end PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Commande Assault A.R.I est mort !") end
})
TEAM_commandosniper = DarkRP.createJob("Commando Sniper - A.R.I", { color = Color(255, 0, 0, 255), model = {"models/player/US_Sniper_Aftermath.mdl"}, description = [[Vous êtes un au grader de la A.R.I]], weapons = {"fas2_m21"}, command = "sniperari", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) end PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Commando Sniper de l'A.R.I est mort !") end
})
TEAM_peste = DarkRP.createJob("Projet Peste", { color = Color(255, 0, 0, 255), model = {"models/player/plague_doktor/PLAYER_Plague_Doktor.mdl"}, description = [[Vous êtes le projets Peste , créer par les A.R.I , vous êtes grand et fort , vous vous battez uniquement au poings et a la grosse sulfateuse .Personne ne connait votre vrai nature .]], weapons = {"weapon_mini_gun_v3", "m9k_fists"}, command = "peste", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(300) ply:SetHealth(300) ply:SetArmor(200) ply:SetModelScale(1.15) ply:SetRunSpeed(350) end PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Projet Peste est mort !!!")
end
})
TEAM_ARIGen = DarkRP.createJob("Général de l'ARI", { color = Color(255, 0, 0, 255), model = {"models/player/big_boss.mdl", "models/player/big_boss.mdl", "models/player/big_boss3.mdl", "models/player/big_boss4.mdl", "models/player/big_boss5.mdl", "models/player/big_boss6.mdl", "models/player/big_boss7.mdl"}, description = [[Vous êtes le général de l'ARI , son Fondateur , gouverner vos troupes et écrasez vos ennemis]], weapons = {"fas2_sks", "fas2_wakizashi", "fas2_rk95"}, command = "ARIGeneral", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(200) ply:SetHealth(200) ply:SetArmor(150) ply:SetRunSpeed(250) end PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Général de l'A.R.I est mort !") end
})
TEAM_USARMYGen = DarkRP.createJob("Général de l'US Army", { color = Color(235, 199, 13, 255), model = {"models/player/riot.mdl"}, description = [[Vous êtes le général de l'US ARMY , gouverner vos troupes et écrasez vos ennemis]], weapons = {"fas2_sks", "fas2_wakizashi", "fas2_rk95"}, command = "USGeneral", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(200) ply:SetHealth(200) ply:SetArmor(150) ply:SetRunSpeed(250) end PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Général de l'U.S Army est mort !!!") end
})
TEAM_robot = DarkRP.createJob("Projet Robot", { color = Color(235, 199, 13, 255), model = {"models/Killzone Mercenary/Helghast_Police_Trooper/Police_Trooper.mdl"}, description = [[Vous êtes le projets Robot , créer par l'U.S Army, vous êtes grand et fort , vous vous battez uniquement au poings et a la grosse sulfateuse .Vous êtes un robot sans aucun sentiments .]], weapons = {"weapon_mini_gun_v3", "m9k_fists"}, command = "robot", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(500) ply:SetHealth(500) ply:SetArmor(250) ply:SetModelScale(1.15) ply:SetRunSpeed(100) end PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Projet Robot est mort !!!")
end
})
TEAM_CommandoInfiltre = DarkRP.createJob("Commando Espion A.R.I", { color = Color(255, 0, 0, 255), model = {"models/blacklist/spy1.mdl"}, description = [[Vous êtes le Commando Espion de l'A.R.I , camouflez vous pour éliminez vos ennemies , grace a votre modules d'invisibilité , vous êtes l'as de l'infiltration]], weapons = {"weapon_camo", "fas2_wakizashi", "fas2_ump45"}, command = "ARIEpion", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) ply:SetRunSpeed(250) end PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Commando Espion de l'A.R.I est mort !") end
})
--[[ Generated using: DarkRP | Job Generator https://csite.io/tools/gmod-darkrp-job
--]]
--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_Citoyen
--[[---------------------------------------------------------------------------
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_recrueari] = true, [TEAM_agentari] = true, [TEAM_commandoassault] = true, [TEAM_commandosniper] = true,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_ARIGen)
 
  • Initiateur de la discussion
Requinou

Requinou

Bambi
Messages
39
Score réaction
0
Points
35
sa ne marche pas , cette fois il me dit :
Code:
 Please check your console for more information!
[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 231.
The best help I can give you is this:
There is an opening '(' bracket at line 212, but this bracket is never closed or not closed in time. It was expected to be closed before the 'PlayerDeath' at line 231.
Hints: - Did you forget a comma? - All open brackets ({, (, [) must have a matching closing bracket. Are you sure it's there? - Brackets must be opened and closed in the right order. This will work: ({}), but this won't: ({)}.
 
ntrom

ntrom

Geek suprême
Messages
306
Score réaction
105
Points
100
Essaye sa
Code:
--[[---------------------------------------------------------------------------
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:
https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua
For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
Add your custom jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_Citoyen = DarkRP.createJob("Citoyen", { color = Color(17, 235, 13, 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_08.mdl", "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", "models/player/zelpa/female_01.mdl", "models/player/zelpa/female_02.mdl", "models/player/zelpa/female_03.mdl", "models/player/zelpa/female_04.mdl", "models/player/zelpa/female_05.mdl", "models/player/zelpa/female_06.mdl", "models/player/zelpa/female_07.mdl", "models/player/zelpa/female_01_b.mdl", "models/player/zelpa/female_02_b.mdl", "models/player/zelpa/female_03_b.mdl", "models/player/zelpa/female_04_b.mdl", "models/player/zelpa/female_05_b.mdl", "models/player/zelpa/female_06_b.mdl", "models/player/zelpa/female_07_b.mdl" }, description = [[Vous devez survivre face aux zombies]], weapons = {}, command = "Citoyen", max = 0, salary = 50, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(0) end
})
TEAM_Marchand = DarkRP.createJob("Marchand", { color = Color(17, 235, 13, 255), model = {"models/joshua_graham/joshua_graham_pm.mdl"}, description = [[Équiper touts les citoyens, les soldats et les ennemies, votre but est de vous faire de l'argent.]], weapons = {}, command = "Marchand", max = 2, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(0) end
})
TEAM_Cuisinier = DarkRP.createJob("Cuisinier", { color = Color(17, 235, 13, 255), model = {"models/fearless/chef1.mdl", "models/fearless/chef2.mdl"}, description = [[Donner de la nourriture aux citoyens pour leur donner de la force.]], weapons = {}, command = "Cuisinier", max = 2, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(0) end
})
TEAM_Médecin = DarkRP.createJob("Médecin", { color = Color(17, 235, 13, 255), model = {"medic1", "medic2", "medic3", "medic4", "medic5", "medic6", "medic7", "medic8", "medic9", "medic10", "medic11", "medic12", "medic13", "medic14", "medic15"}, description = [[Soigner les citoyens pour qu'ils puissent rester en vie.]], weapons = {"med_kit"}, command = "Médecin", max = 2, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(0) end
})
TEAM_Gardiendelaville = DarkRP.createJob("Gardien de la ville", { color = Color(17, 235, 13, 255), model = {"models/player/arnold_schwarzenegger.mdl"}, description = [[Vous protéger les citoyens seulement dans la ville.]], weapons = {"fas2_deagle"}, command = "Gardien de la ville", max = 5, salary = 120, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(25) end
})
TEAM_Maire = DarkRP.createJob("Maire", { color = Color(17, 235, 13, 255), model = {"models/player/breen.mdl"}, description = [[Vous gouverner la ville pour que tout ce passe bien.]], weapons = {"fas2_deagle"}, command = "Maire", max = 1, salary = 150, admin = 0, vote = true, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(50) end
})
TEAM_Gardeducorp = DarkRP.createJob("Garde du corp", { color = Color(17, 235, 13, 255), model = {"models/player/portal/Male_01_security.mdl", "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 devez protéger un maximum le Maire.]], weapons = {"fas2_deagle"}, command = "Gardeducorp", max = 5, salary = 125, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(25) end
})
TEAM_recrueusarmy = DarkRP.createJob("Recrue - U.S ARMY", { color = Color(235, 199, 13, 255), model = {"models/player/Srgt.Shotup"}, description = [[Vous êtes une recrue de la U.S ARMY.]], weapons = {"fas2_glock20"}, command = "recrueusarmy", max = 10, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(50) end
})
TEAM_agentdelausarmy = DarkRP.createJob("Agent - U.S ARMY", { color = Color(235, 199, 13, 255), model = {"models/player/urban.mdl"}, description = [[Vous êtes un haut grader de la U.S ARMY.]], weapons = {"fas2_deagle"}, command = "agentdelausarmy", max = 5, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(100) end PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Un Agent de l'U.S Army est mort !") end
})
TEAM_regimentassault = DarkRP.createJob("Régiment assault - U.S ARMY", { color = Color(235, 199, 13, 255), model = {"models/player/swat.mdl"}, description = [[Vous êtes un haut grader de la U.S ARMY.]], weapons = {"fas2_famas"}, command = "AsaultUsarmy", max = 1, salary = 142, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) end PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Regiement d'assault de l'U.S Army est mort !") end
})
TEAM_recrueari = DarkRP.createJob("Recrue - A.R.I", { color = Color(255, 0, 0, 255), model = {"models/mfc_new_heavy_npc.mdl", "models/MFC_New_Heavy.mdl", "models/mfc_new_npc.mdl", "models/mfc_new.mdl"}, description = [[Vous êtes une recrue de la A.R.I]], weapons = {"fas2_glock20"}, command = "recrueari", max = 10, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(50) end
})
TEAM_agentari = DarkRP.createJob("Agent - A.R.I", { color = Color(255, 0, 0, 255), model = {"models/minson97/bo2/seal_masked.mdl",
"models/minson97/bo2/seal.mdl"}, description = [[Vous êtes un haut grader de la A.R.I]], weapons = {"fas2_deagle"}, command = "agentari", max = 5, salary = 124, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(100) end PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Un Agent de l'A.R.I est mort !") end
})
TEAM_commandoassault = DarkRP.createJob("Commando Assault - A.R.I", { color = Color(255, 0, 0, 255), model = {"models/player/auditor/r6s/thatcher.mdl"}, description = [[Vous êtes un au grader de la A.R.I]], weapons = {"fas2_famas"}, command = "assaultari", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) end PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Commande Assault A.R.I est mort !") end
})
TEAM_commandosniper = DarkRP.createJob("Commando Sniper - A.R.I", { color = Color(255, 0, 0, 255), model = {"models/player/US_Sniper_Aftermath.mdl"}, description = [[Vous êtes un au grader de la A.R.I]], weapons = {"fas2_m21"}, command = "sniperari", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) end PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Commando Sniper de l'A.R.I est mort !") end
})
TEAM_peste = DarkRP.createJob("Projet Peste", { color = Color(255, 0, 0, 255), model = {"models/player/plague_doktor/PLAYER_Plague_Doktor.mdl"}, description = [[Vous êtes le projets Peste , créer par les A.R.I , vous êtes grand et fort , vous vous battez uniquement au poings et a la grosse sulfateuse .Personne ne connait votre vrai nature .]], weapons = {"weapon_mini_gun_v3", "m9k_fists"}, command = "peste", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(300) ply:SetHealth(300) ply:SetArmor(200) ply:SetModelScale(1.15) ply:SetRunSpeed(350) end PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Projet Peste est mort !!!")
end
})
TEAM_ARIGen = DarkRP.createJob("Général de l'ARI", { color = Color(255, 0, 0, 255), model = {"models/player/big_boss.mdl", "models/player/big_boss.mdl", "models/player/big_boss3.mdl", "models/player/big_boss4.mdl", "models/player/big_boss5.mdl", "models/player/big_boss6.mdl", "models/player/big_boss7.mdl"}, description = [[Vous êtes le général de l'ARI , son Fondateur , gouverner vos troupes et écrasez vos ennemis]], weapons = {"fas2_sks", "fas2_wakizashi", "fas2_rk95"}, command = "ARIGeneral", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(200) ply:SetHealth(200) ply:SetArmor(150) ply:SetRunSpeed(250) end PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Général de l'A.R.I est mort !") end
})
TEAM_USARMYGen = DarkRP.createJob("Général de l'US Army", { color = Color(235, 199, 13, 255), model = {"models/player/riot.mdl"}, description = [[Vous êtes le général de l'US ARMY , gouverner vos troupes et écrasez vos ennemis]], weapons = {"fas2_sks", "fas2_wakizashi", "fas2_rk95"}, command = "USGeneral", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(200) ply:SetHealth(200) ply:SetArmor(150) ply:SetRunSpeed(250) end PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Général de l'U.S Army est mort !!!") end
})
TEAM_robot = DarkRP.createJob("Projet Robot", { color = Color(235, 199, 13, 255), model = {"models/Killzone Mercenary/Helghast_Police_Trooper/Police_Trooper.mdl"}, description = [[Vous êtes le projets Robot , créer par l'U.S Army, vous êtes grand et fort , vous vous battez uniquement au poings et a la grosse sulfateuse .Vous êtes un robot sans aucun sentiments .]], weapons = {"weapon_mini_gun_v3", "m9k_fists"}, command = "robot", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(500) ply:SetHealth(500) ply:SetArmor(250) ply:SetModelScale(1.15) ply:SetRunSpeed(100) end PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Projet Robot est mort !!!")
end
})
TEAM_CommandoInfiltre = DarkRP.createJob("Commando Espion A.R.I", { color = Color(255, 0, 0, 255), model = {"models/blacklist/spy1.mdl"}, description = [[Vous êtes le Commando Espion de l'A.R.I , camouflez vous pour éliminez vos ennemies , grace a votre modules d'invisibilité , vous êtes l'as de l'infiltration]], weapons = {"weapon_camo", "fas2_wakizashi", "fas2_ump45"}, command = "ARIEpion", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) ply:SetRunSpeed(250) end PlayerDeath = function(ply, weapon, killer) ply:teamBan() ply:changeTeam(GAMEMODE.DefaultTeam, true) DarkRP.notifyAll(0, 4, "Le Commando Espion de l'A.R.I est mort !") end
})
--[[ Generated using: DarkRP | Job Generator https://csite.io/tools/gmod-darkrp-job
--]]
--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_Citoyen
--[[---------------------------------------------------------------------------
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_recrueari] = true, [TEAM_agentari] = true, [TEAM_commandoassault] = true, [TEAM_commandosniper] = true,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_ARIGen)
 
  • Initiateur de la discussion
Requinou

Requinou

Bambi
Messages
39
Score réaction
0
Points
35
La même chose
Code:
 Please check your console for more information!
[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 232.
The best help I can give you is this:
There is an opening '{' bracket at line 214, but this bracket is never closed or not closed in time. It was expected to be closed before the 'PlayerDeath' at line 232.
Hints: - Did you forget a comma? - All open brackets ({, (, [) must have a matching closing bracket. Are you sure it's there? - Brackets must be opened and closed in the right order. This will work: ({}), but this won't: ({)}.
------- End of Simplerr error -------
 
  • Initiateur de la discussion
Requinou

Requinou

Bambi
Messages
39
Score réaction
0
Points
35
Je crois que l'erreur se répète plein de fois :/
 
  • Initiateur de la discussion
Requinou

Requinou

Bambi
Messages
39
Score réaction
0
Points
35
J'ai résolu ce bug , mais j'en ai un autre :

Code:
--[[---------------------------------------------------------------------------
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:
https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua
For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
Add your custom jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_Citoyen = DarkRP.createJob("Citoyen", { color = Color(17, 235, 13, 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_08.mdl", "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", "models/player/zelpa/female_01.mdl", "models/player/zelpa/female_02.mdl", "models/player/zelpa/female_03.mdl", "models/player/zelpa/female_04.mdl", "models/player/zelpa/female_05.mdl", "models/player/zelpa/female_06.mdl", "models/player/zelpa/female_07.mdl", "models/player/zelpa/female_01_b.mdl", "models/player/zelpa/female_02_b.mdl", "models/player/zelpa/female_03_b.mdl", "models/player/zelpa/female_04_b.mdl", "models/player/zelpa/female_05_b.mdl", "models/player/zelpa/female_06_b.mdl", "models/player/zelpa/female_07_b.mdl"}, description = [[Vous devez survivre face aux zombies]], weapons = {}, command = "Citoyen", max = 0, salary = 50, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(0) end
})
TEAM_Marchand = DarkRP.createJob("Marchand", { color = Color(17, 235, 13, 255), model = {"models/joshua_graham/joshua_graham_pm.mdl"}, description = [[Équiper touts les citoyens, les soldats et les ennemies, votre but est de vous faire de l'argent.]], weapons = {}, command = "Marchand", max = 2, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(0) end
})
TEAM_Cuisinier = DarkRP.createJob("Cuisinier", { color = Color(17, 235, 13, 255), model = {"models/fearless/chef1.mdl", "models/fearless/chef2.mdl"}, description = [[Donner de la nourriture aux citoyens pour leur donner de la force.]], weapons = {}, command = "Cuisinier", max = 2, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(0) end
})
TEAM_Médecin = DarkRP.createJob("Médecin", { color = Color(17, 235, 13, 255), model = {"models/player/Group03m/female_01.mdl", "models/player/Group03m/female_02.mdl", "models/player/Group03m/female_03.mdl", "models/player/Group03m/female_04.mdl", "models/player/Group03m/female_05.mdl", "models/player/Group03m/female_06.mdl", "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 = [[Soigner les citoyens pour qu'ils puissent rester en vie.]], weapons = {"med_kit"}, command = "Médecin", max = 2, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Citoyen", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(0) end
})
TEAM_Gardiendelaville = DarkRP.createJob("Gardien de la ville", { color = Color(0, 67, 255, 255), model = {"models/player/arnold_schwarzenegger.mdl"}, description = [[Vous protéger les citoyens seulement dans la ville.]], weapons = {"fas2_deagle"}, command = "Gardien de la ville", max = 5, salary = 120, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Gouvernement", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(25) end
})
TEAM_Maire = DarkRP.createJob("Maire", { color = Color(0, 67, 255, 255), model = {"models/player/breen.mdl"}, description = [[Vous gouverner la ville pour que tout ce passe bien.]], weapons = {"fas2_deagle"}, command = "Maire", max = 1, salary = 150, admin = 0, vote = true, hasLicense = false, candemote = false, category = "Gouvernement", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(50) end
})
TEAM_Gardeducorp = DarkRP.createJob("Garde du corp", { color = Color(0, 67, 255, 255)), model = {"models/player/portal/Male_01_security.mdl", "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 devez protéger un maximum le Maire.]], weapons = {"fas2_deagle"}, command = "Gardeducorp", max = 5, salary = 125, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Gouvernement", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(25) end
})
TEAM_recrueusarmy = DarkRP.createJob("Recrue - U.S ARMY", { color = Color(235, 199, 13, 255), model = {"models/player/Srgt.Shotup"}, description = [[Vous êtes une recrue de la U.S ARMY.]], weapons = {"fas2_glock20"}, command = "recrueusarmy", max = 10, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(50) end
})
TEAM_regimentsniper = DarkRP.createJob("Régiment sniper - U.S ARMY", { color = Color(235, 199, 13, 255), model = {"models/player/riot.mdl"}, description = [[Vous êtes un haut grader de la U.S ARMY.]], weapons = {"fas2_m21"}, command = "SniperUsarmy", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) end
})
TEAM_agentdelausarmy = DarkRP.createJob("Agent - U.S ARMY", { color = Color(235, 199, 13, 255), model = {"models/player/urban.mdl"}, description = [[Vous êtes un haut grader de la U.S ARMY.]], weapons = {"fas2_deagle"}, command = "agentdelausarmy", max = 5, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(100) end
})
TEAM_regimentassault = DarkRP.createJob("Régiment assault - U.S ARMY", { color = Color(235, 199, 13, 255), model = {"models/player/swat.mdl"}, description = [[Vous êtes un haut grader de la U.S ARMY.]], weapons = {"fas2_famas"}, command = "AsaultUsarmy", max = 1, salary = 142, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) end
})
TEAM_recrueari = DarkRP.createJob("Recrue - A.R.I", { color = Color(255, 0, 0, 255), model = {"models/mfc_new_heavy_npc.mdl", "models/MFC_New_Heavy.mdl", "models/mfc_new_npc.mdl", "models/mfc_new.mdl"}, description = [[Vous êtes une recrue de la A.R.I]], weapons = {"fas2_glock20"}, command = "recrueari", max = 10, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(50) end
})
TEAM_agentari = DarkRP.createJob("Agent - A.R.I", { color = Color(255, 0, 0, 255), model = {"models/minson97/bo2/seal_masked.mdl",
"models/minson97/bo2/seal.mdl"}, description = [[Vous êtes un haut grader de la A.R.I]], weapons = {"fas2_deagle"}, command = "agentari", max = 5, salary = 124, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(100) end
})
TEAM_commandoassault = DarkRP.createJob("Commando Assault - A.R.I", { color = Color(255, 0, 0, 255), model = {"models/player/auditor/r6s/thatcher.mdl"}, description = [[Vous êtes un au grader de la A.R.I]], weapons = {"fas2_famas"}, command = "assaultari", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) end
})
TEAM_commandosniper = DarkRP.createJob("Commando Sniper - A.R.I", { color = Color(255, 0, 0, 255), model = {"models/player/US_Sniper_Aftermath.mdl"}, description = [[Vous êtes un au grader de la A.R.I]], weapons = {"fas2_m21"}, command = "sniperari", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) end
})
TEAM_peste = DarkRP.createJob("Projet Peste", { color = Color(255, 0, 0, 255), model = {"models/player/plague_doktor/PLAYER_Plague_Doktor.mdl"}, description = [[Vous êtes le projets Peste , créer par les A.R.I , vous êtes grand et fort , vous vous battez uniquement au poings et a la grosse sulfateuse .Personne ne connait votre vrai nature .]], weapons = {"weapon_mini_gun_v3", "m9k_fists"}, command = "peste", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(300) ply:SetHealth(300) ply:SetArmor(200) ply:SetModelScale(1.15) ply:SetRunSpeed(350) end
})
TEAM_ARIGen = DarkRP.createJob("Général de l'ARI", { color = Color(255, 0, 0, 255), model = {"models/player/big_boss.mdl", "models/player/big_boss.mdl", "models/player/big_boss3.mdl", "models/player/big_boss4.mdl", "models/player/big_boss5.mdl", "models/player/big_boss6.mdl", "models/player/big_boss7.mdl"}, description = [[Vous êtes le général de l'ARI , son Fondateur , gouverner vos troupes et écrasez vos ennemis]], weapons = {"fas2_sks", "fas2_wakizashi", "fas2_rk95"}, command = "ARIGeneral", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(200) ply:SetHealth(200) ply:SetArmor(150) ply:SetRunSpeed(250) end
})
TEAM_USARMYGen = DarkRP.createJob("Général de l'US Army", { color = Color(235, 199, 13, 255), model = {"models/player/riot.mdl"}, description = [[Vous êtes le général de l'US ARMY , gouverner vos troupes et écrasez vos ennemis]], weapons = {"fas2_sks", "fas2_wakizashi", "fas2_rk95"}, command = "USGeneral", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(200) ply:SetHealth(200) ply:SetArmor(150) ply:SetRunSpeed(250) end
})
TEAM_robot = DarkRP.createJob("Projet Robot", { color = Color(235, 199, 13, 255), model = {"models/Killzone Mercenary/Helghast_Police_Trooper/Police_Trooper.mdl"}, description = [[Vous êtes le projets Robot , créer par l'U.S Army, vous êtes grand et fort , vous vous battez uniquement au poings et a la grosse sulfateuse .Vous êtes un robot sans aucun sentiments .]], weapons = {"weapon_mini_gun_v3", "m9k_fists"}, command = "robot", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "U.S ARMY", PlayerSpawn = function(ply) ply:SetMaxHealth(500) ply:SetHealth(500) ply:SetArmor(250) ply:SetModelScale(1.15) ply:SetRunSpeed(100) end
})
TEAM_CommandoEspion = DarkRP.createJob("Commando Espion - A.R.I", { color = Color(255, 0, 0, 255), model = {"models/blacklist/spy1.mdl"}, description = [[Vous êtes le Commando Espion de l'A.R.I , camouflez vous pour éliminez vos ennemies , grace a votre modules d'invisibilité , vous êtes l'as de l'infiltration]], weapons = {"weapon_camo", "fas2_wakizashi", "fas2_ump45"}, command = "ARIEspion", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(150) ply:SetRunSpeed(250) end
})
TEAM_ARIGen2 = DarkRP.createJob("Sous-Général de l'ARI", { color = Color(255, 0, 0, 255), model = {"models/dizcordum/dizcordum_exo.mdl", "models/dizcordum/dizcordum.mdl"}, description = [[Vous êtes le sous général de l'ARI , aidez le général et gouverner les troupes et écrasez vos ennemis]], weapons = {"fas2_wakizashi", "fas2_rk95"}, command = "ARISousGeneral", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(200) ply:SetHealth(200) ply:SetArmor(150) ply:SetRunSpeed(250) end
})
TEAM_ARIMed = DarkRP.createJob("Médecin Militaire - A.R.I", { color = Color(255, 0, 0, 255), model = {"models/player/101st_medic_us_male01.mdl", "models/player/101st_medic_us_male02.mdl", "models/player/101st_medic_us_male03.mdl", "models/player/101st_medic_us_male04.mdl", "models/player/101st_medic_us_male05.mdl", "models/player/101st_medic_us_male06.mdl", "models/player/101st_medic_us_male07.mdl", "models/player/101st_medic_us_male08.mdl", "models/player/101st_medic_us_male09.mdl"}, description = [[Vous êtes le Médecin Militaire de l'ARI , soignez les troupes et écrasez vos ennemis, Attention , vous serez surêment une cible prioritaire !]], weapons = {"weapon_medkit", "fas2_ragingbull"}, command = "ARIMedecin", max = 3, salary =75, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(125) end
})
TEAM_CommandoHeavy = DarkRP.createJob("Commando Heavy - A.R.I", { color = Color(255, 0, 0, 255), model = {"models/blacklist/spy1.mdl"}, description = [[Vous êtes le Commando Heavy de l'A.R.I ,tuez vos ennemies et passez en première ligne !]], weapons = {"fas2_rem870", "fas2_deagle", "fas2_machete"}, command = "ARIheavy", max = 1, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "A.R.I", PlayerSpawn = function(ply) ply:SetMaxHealth(125) ply:SetHealth(125) ply:SetArmor(200) ply:SetRunSpeed(180) end
})
--[[ Generated using: DarkRP | Job Generator https://csite.io/tools/gmod-darkrp-job
--]]
--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_Citoyen
--[[---------------------------------------------------------------------------
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_recrueari] = true, [TEAM_agentari] = true, [TEAM_commandoassault] = true, [TEAM_commandosniper] = true,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_ARIGen)
LUA ERROR :

Code:
There is 1 Lua problem! Please check your console for more information!
[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 165.
The best help I can give you is this:
There is an opening '{' bracket at line 164, but this bracket is never closed or not closed in time. It was expected to be closed before the ')' at line 165.
Hints: - Did you forget a comma? - All open brackets ({, (, [) must have a matching closing bracket. Are you sure it's there? - Brackets must be opened and closed in the right order. This will work: ({}), but this won't: ({)}.
------- End of Simplerr error -------
 
PJGame

PJGame

Geek suprême
Messages
288
Score réaction
68
Points
160
Tu oublie simplement d'ouvrir ou fermer des "{" ou "}"
 
  • Initiateur de la discussion
Requinou

Requinou

Bambi
Messages
39
Score réaction
0
Points
35
je sais , mais je trouve pas ou
 
PJGame

PJGame

Geek suprême
Messages
288
Score réaction
68
Points
160
Requinou à dit:
je sais , mais je trouve pas ou
Regarde à quel ligne est ton erreur et tu regarde dans ton fichier quel est la ligne en question et si tu trouves pas essaye de chercher dans les alentours souvent c'est un truc que tu as oublié de fermer ou d'ouvrir et qui donc fout ton tes jobs en l'air
 
  • Initiateur de la discussion
Requinou

Requinou

Bambi
Messages
39
Score réaction
0
Points
35
J'ai cherché , j'ai pas trouvé .
 
  • Initiateur de la discussion
Requinou

Requinou

Bambi
Messages
39
Score réaction
0
Points
35
J'ai réglé le problème mais j'en ai un autre , je vous donne le code et l'erreur :

Code:
--[[---------------------------------------------------------------------------
DarkRP custom shipments and guns
---------------------------------------------------------------------------
This file contains your custom shipments and guns.
This file should also contain shipments and guns from DarkRP that you edited.
Note: If you want to edit a default DarkRP shipment, first disable it in darkrp_config/disabled_defaults.lua Once you've done that, copy and paste the shipment to this file and edit it.
The default shipments and guns can be found here:
https://github.com/FPtje/DarkRP/blob/master/gamemode/config/addentities.lua
For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomShipmentFields
Add shipments and guns under the following line:
---------------------------------------------------------------------------]]
DarkRP.createShipment("AK-74", { model = "fas2_ak74", entity = "fas2_ak74", price = 5000, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme",
}) DarkRP.createShipment("M14", { model = "fas2_m14", entity = "fas2_m14", price = 4000 , amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme" }) DarkRP.createShipment("M16A2", { model = "fas2_m16a2", entity = "fas2_m16a2", price = 5000, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("M4A1", { model = "fas2_m4a1", entity = "fas2_m4a1", price = 5500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("Galil", { model = "fas2_galil", entity = "fas2_falil", price = 4500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("HK UMP45", { model = "fas2_ump45", entity = "fas2_ump45", price = 3000, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("AK-12", { model = "fas2_ak12", entity = "fas2_ak12", price = 5000, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("G36C", { model = "fas2_g36c", entity = "fas2_g36c", price = 4500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("M14", { model = "fas2_m14", entity = "fas2_m14", price = 4000 , amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("SKS", { model = "fas2_sks", entity = "fas2_sks", price = 4500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("PP-Bizon", { model = "fas2_pp19", entity = "fas2_pp19", price = 3000, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("UZI", { model = "fas2_uzi", entity = "fas2_uzi", price = 3250 , amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("M11A1", { model = "fas2_mac11", entity = "fas2_mac11", price = 3000, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("AN-94", { model = "fas2_an94", entity = "fas2_an94", price = 4500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("Famas F1", { model = "fas2_famas", entity = "fas2_famas", price = 4500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("MP5A5", { model = "fas2_mp5a5", entity = "fas2_mp5a5", price = 3000, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("MP5K", { model = "fas2_mp5k", entity = "fas2_mp5k", price = 2500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("RPK-47", { model = "fas2_rpk", entity = "fas2_rpk", price = 6000, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("Sako RK-95", { model = "fas2_rk95", entity = "fas2_rk95", price = 6000 , amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("SG 550", { model = "fas2_sg550", entity = "fas2_sg550", price = 4500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("Sterling L34A1", { model = "fas2_sterling_sil", entity = "fas2_sterling_sil", price = 3500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("Sterling MK7A4", { model = "fas2_sterling_mk7a4", entity = "fas2_sterling_mk7a4", price = 3500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("Glock-20", { model = "fas2_glock20", entity = "fas2_glock20", price = 500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("Desert Eagle", { model = "fas2_deagle", entity = "fas2_deagle", price = 1000, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("M1911", { model = "fas2_m1911", entity = "fas2_m1911", price = 600, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("OTs-33 Pernach", { model = "fas2_ots33", entity = "fas2_ots33", price = 550 , amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("P226", { model = "fas2_p226", entity = "fas2_p226", price = 550, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("Raging Bull", { model = "fas2_ragingbull", entity = "fas2_ragingbull", price = 1000 , amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("M60E3", { model = "fas2_m60e3", entity = "fas2_m60e3", price = 10000 , amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("Dragunov SVD", { model = "fas2_svd", entity = "fas2_svd", price = 6500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("M21", { model = "fas2_m21", entity = "fas2_m21", price = 6000 , amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("M24", { model = "fas2_m24", entity = "fas2_m24", price = 6500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("SR-25", { model = "fas2_sr25", entity = "fas2_sr25", price = 6500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("M82", { model = "fas2_m82", entity = "fas2_m82", price = 7000, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("KS-23", { model = "fas2_ks23", entity = "fas2_ks23", price = 3500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("Remington 870", { model = "fas2_rem870", entity = "fas2_rem870", price = 4000, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("M3 Super 90", { model = "fas2_m3s90", entity = "fas2_m3s90", price = 5000, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("TOZ-34", { model = "fas2_toz34", entity = "fas2_toz34", price = 4500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("Wakizashi", { model = "fas2_wakizashi", entity = "fas2_wakizashi", price = 500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("Couteau DV2", { model = "fas2_dv2", entity = "fas2_dv2", price = 200, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("Machete", { model = "fas2_machete", entity = "fas2_machete", price = 300, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("Tronçonneuse", { model = "weapon_chainsaw_new", entity = "weapon_chainsaw_new", price = 1500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("Grenade M67", { model = "fas2_m67", entity = "fas2_m67", price = 10000, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Arme", }) DarkRP.createShipment("ACOG 4x", { model = "fas2_att_acog", entity = "fas2_att_acog", price = 500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Accesoire", }) DarkRP.createShipment("COMP M4", { model = "fas2_att_compm4", entity = "fas2_att_compm4", price = 500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Accesoire", }) DarkRP.createShipment("ECLAN C79", { model = "fas2_att_c79", entity = "fas2_att_c79", price = 500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Accesoire", }) DarkRP.createShipment("EoTech 553", { model = "fas2_att_eotech", entity = "fas2_att_eotech", price = 500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Accesoire", }) DarkRP.createShipment("Poigné", { model = "fas2_att_foregrip", entity = "fas2_att_foregrip", price = 500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Accesoire", }) DarkRP.createShipment("Harris Bipied", { model = "fas2_att_harrisbipod", entity = "fas2_att_harrisbipod", price = 500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Accesoire", }) DarkRP.createShipment("Leupold MK4", { model = "fas2_att_leupold", entity = "fas2_att_leupold", price = 500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Accesoire", }) DarkRP.createShipment("M21 20RND Mag", { model = "fas2_att_m2120mag", entity = "fas2_att_m2120mag", price = 500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Accesoire", }) DarkRP.createShipment("MP5 30RND Mag", { model = "fas2_att_mp5k30mag", entity = "fas2_att_mp5k30mag", price = 500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Accesoire", }) DarkRP.createShipment("PSO-1", { model = "fas2_att_pso1", entity = "fas2_att_pso1", price = 500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Accesoire", }) DarkRP.createShipment("SG55X 30RND Mag", { model = "fas2_att_sg55x30mag", entity = "fas2_att_sg55x30mag", price = 500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Accesoire", }) DarkRP.createShipment("SKS 20RND Mag", { model = "fas2_att_sks20mag", entity = "fas2_att_sks20mag", price = 500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Accesoire", }) DarkRP.createShipment("SKS 30RND Mag", { model = "fas2_att_sks30mag", entity = "fas2_att_sks30mag", price = 500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Accesoire", }) DarkRP.createShipment("STANAG 30RND Mag", { model = "fas2_att_stanagx30mag", entity = "fas2_att_stanagx30mag", price = 500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Accesoire", }) DarkRP.createShipment("Silencieux", { model = "fas2_att_suppressor", entity = "fas2_att_suppressor", price = 500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Accesoire", }) DarkRP.createShipment("Tritium Sight", { model = "fas2_att_tritiumsights", entity = "fas2_att_tritiumsights", price = 500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Accesoire", }) DarkRP.createShipment("UZI Wooden Stock", { model = "fas2_att_uziwoodenstock", entity = "fas2_att_uziwoodenstock", price = 500, amount = 1, seperate = false, pricesep = 2, noship = false, allowed = {TEAM_Marchand} category = "Accesoire", }) DarkRP.createShipment("357 Sig", { model = "fas2_ammo_357sig", entity = "fas2_ammo_357sig", price = 50, amount = 1, seperate = false, pricesep = 2, noship = false, category = "Munition", }) DarkRP.createShipment("380 APC", { model = "fas2_ammo_380acp", entity = "fas2_ammo_380acp", price = 50, amount = 1, seperate = false, pricesep = 2, noship = false, category = "Munition", }) DarkRP.createShipment("44 Magnum", { model = "fas2_ammo_44mag", entity = "fas2_ammo_44mag", price = 50, amount = 1, seperate = false, pricesep = 2, noship = false, category = "Munition", }) DarkRP.createShipment("45 APC", { model = "fas2_ammo_45acp", entity = "fas2_ammo_45acp", price = 50, amount = 1, seperate = false, pricesep = 2, noship = false, category = "Munition", }) DarkRP.createShipment("50 AE", { model = "fas2_ammo_50ae", entity = "fas2_ammo_50ae", price = 50, amount = 1, seperate = false, pricesep = 2, noship = false, category = "Munition", }) DarkRP.createShipment("50 BMG", { model = "fas2_ammo_50bmg", entity = "fas2_ammo_50bmg", price = 50, amount = 1, seperate = false, pricesep = 2, noship = false, category = "Munition", }) DarkRP.createShipment("500 S&W", { model = "fas2_ammo_454casull", entity = "fas2_ammo_454casull", price = 50, amount = 1, seperate = false, pricesep = 2, noship = false, category = "Munition", }) DarkRP.createShipment("10x25MM", { model = "fas2_ammo_10x25", entity = "fas2_ammo_10x25g", price = 50, amount = 1, seperate = false, pricesep = 2, noship = false, category = "Munition", }) DarkRP.createShipment("12 Gauge", { model = "fas2_ammo_12gauge", entity = "fas2_ammo_12gauge", price = 50, amount = 1, seperate = false, pricesep = 2, noship = false, category = "Munition", }) DarkRP.createShipment("23x75MMR", { model = "fas2_ammo_23x75", entity = "fas2_ammo_23x75", price = 50, amount = 1, seperate = false, pricesep = 2, noship = false, category = "Munition", }) DarkRP.createShipment("40MM HE", { model = "fas2_ammo_40mm", entity = "fas2_ammo_40mm", price = 50, amount = 1, seperate = false, pricesep = 2, noship = false, category = "Munition", }) DarkRP.createShipment("5.45x39MM", { model = "fas2_ammo_545x39", entity = "fas2_ammo_545x39", price = 50, amount = 1, seperate = false, pricesep = 2, noship = false, category = "Munition", }) DarkRP.createShipment("5.56x45MM", { model = "fas2_ammo_556x45", entity = "fas2_ammo_556x45", price = 50, amount = 1, seperate = false, pricesep = 2, noship = false, category = "Munition", }) DarkRP.createShipment("7.62x39MM", { model = "fas2_ammo_762x39", entity = "fas2_ammo_762x39", price = 50, amount = 1, seperate = false, pricesep = 2, noship = false, category = "Munition", }) DarkRP.createShipment("7.62x51MM", { model = "fas2_ammo_762x51", entity = "fas2_ammo_762x51", price = 50, amount = 1, seperate = false, pricesep = 2, noship = false, category = "Munition", }) DarkRP.createShipment("9x18MM", { model = "fas2_ammo_9x18", entity = "fas2_ammo_9x18", price = 50, amount = 1, seperate = false, pricesep = 2, noship = false, category = "Munition", }) DarkRP.createShipment("9x19MM", { model = "fas2_ammo_9x19", entity = "fas2_ammo_9x19", price = 50, amount = 1, seperate = false, pricesep = 2, noship = false, category = "Munition", })

LUA ERROR :

There is 1 Lua problem!
Please check your console for more information!
[ERROR] Lua is unable to understand file "darkrp_customthings/shipments.lua" because its author made a mistake around line number 29.
The best help I can give you is this:

There is an opening '{' bracket at line 20, but this bracket is never closed or not closed in time. It was expected to be closed before the 'category' at line 29.

Hints:
- Did you forget a comma?
- All open brackets ({, (, [) must have a matching closing bracket. Are you sure it's there?
- Brackets must be opened and closed in the right order. This will work: ({}), but this won't: ({)}.

------- End of Simplerr error -------
 
Discord d'entraide
Rejoignz-nous sur Discord