- Initiateur de la discussion
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 :
Lua Error :
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)
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 -------