2 Erreur lua qui me casse la tête depuis 3 jours ! Job.lua

  • Initiateur de la discussion
S

Scaryjo

Geek
Messages
3
Score réaction
0
Points
65
J'ai seulement c'est 2 erreur lua qui me tracasse, mais quand je vais voir ou ce situe le problème je ne vois aucune différence avec un job basique
Je vous met mes jobs, vous pouvez m'expliquer svp ?

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 242. The best help I can give you is this: There is an opening '{' bracket at line 237, but this bracket is never closed or not closed in time. It was expected to be closed before the 'command' at line 242. 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 -------




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:
---------------------------------------------------------------------------]]
--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_CCT
--[[---------------------------------------------------------------------------
Define which teams belong to civil protection
Civil protection can set warrants, make people wanted and do some other police related things
---------------------------------------------------------------------------]]
GAMEMODE.CivilProtection = { [TEAM_POLICE] = true, [TEAM_CHIEF] = true, [TEAM_MAYOR] = true,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_MOB)
TEAM_CCT = DarkRP.createJob("Cadet", { color = Color(0, 255, 255, 255), model = {"models/player/clonecadet/clonecadet.mdl"}, description = [[tu es un cadet]], weapons = {"tfa_752_dc15s_expanded", "garde_a_vousv1.1"}, command = "cct", max = 0, salary = 25, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Cadetclone", NeedToChangeFrom = TEAM_CCT, PlayerSpawn = function(ply) ply:SetMaxHealth(100) ply:SetHealth(100) ply:SetArmor(50) end
})
-- État-Major
TEAM_CADET = DarkRP.createJob("Cadet", { color = Color(166, 166, 166), model = {"models/player/scifi_male_02.mdl", "models/player/scifi_male_04.mdl", "models/player/scifi_male_05.mdl", "models/player/scifi_male_06.mdl", "models/player/scifi_male_07.mdl", "models/player/scifi_male_09.mdl"}, description = [[Vous êtes membres de l'État Major, vous êtes donc un des plus respecté dans le vénator.]], weapons = {"garde_a_vous", "cross_arms_swep", "weapon_752_dc17"}, command = "cadetem", max = 0, salary = 50, admin = 0, vote = false, hasLicense = false, candemote = false, category = "État-Major",
})
TEAM_OFFICIER = DarkRP.createJob("Officier", { color = Color(166, 166, 166), model = {"models/player/scifi_male_02.mdl", "models/player/scifi_male_04.mdl", "models/player/scifi_male_05.mdl", "models/player/scifi_male_06.mdl", "models/player/scifi_male_07.mdl", "models/player/scifi_male_09.mdl"}, description = [[Vous êtes membres de l'État Major, vous êtes donc un des plus respecté dans le vénator.]], weapons = {"garde_a_vous", "cross_arms_swep", "weapon_752_dc17"}, command = "officierem", max = 0, salary = 100, admin = 0, vote = false, hasLicense = false, candemote = false, category = "État-Major",
})
TEAM_ENSEIGNE = DarkRP.createJob("Enseigne", { color = Color(166, 166, 166), model = {"models/player/scifi_male_02.mdl", "models/player/scifi_male_04.mdl", "models/player/scifi_male_05.mdl", "models/player/scifi_male_06.mdl", "models/player/scifi_male_07.mdl", "models/player/scifi_male_09.mdl"}, description = [[Vous êtes membres de l'État Major, vous êtes donc un des plus respecté dans le vénator.]], weapons = {"garde_a_vous", "cross_arms_swep", "weapon_752_dc17"}, command = "enseigneem", max = 0, salary = 150, admin = 0, vote = false, hasLicense = false, candemote = false, category = "État-Major",
})
TEAM_LTNEM = DarkRP.createJob("Lieutenant", { color = Color(166, 166, 166), model = {"models/player/scifi_male_02.mdl", "models/player/scifi_male_04.mdl", "models/player/scifi_male_05.mdl", "models/player/scifi_male_06.mdl", "models/player/scifi_male_07.mdl", "models/player/scifi_male_09.mdl"}, description = [[Vous êtes membres de l'État Major, vous êtes donc un des plus respecté dans le vénator.]], weapons = {"garde_a_vous", "cross_arms_swep", "weapon_752_dc17"}, command = "ltnem", max = 0, salary = 250, admin = 0, vote = false, hasLicense = false, candemote = false, category = "État-Major",
})
TEAM_CPTEM = DarkRP.createJob("Capitaine", { color = Color(166, 166, 166), model = {"models/player/scifi_male_02.mdl", "models/player/scifi_male_04.mdl", "models/player/scifi_male_05.mdl", "models/player/scifi_male_06.mdl", "models/player/scifi_male_07.mdl", "models/player/scifi_male_09.mdl"}, description = [[Vous êtes membres de l'État Major, vous êtes donc un des plus respecté dans le vénator.]], weapons = {"garde_a_vous", "cross_arms_swep", "weapon_752_dc17"}, command = "cptem", max = 0, salary = 450, admin = 0, vote = false, hasLicense = false, candemote = false, category = "État-Major",
})
TEAM_CMDEM = DarkRP.createJob("Commandant", { color = Color(166, 166, 166), model = {"models/player/scifi_male_02.mdl", "models/player/scifi_male_04.mdl", "models/player/scifi_male_05.mdl", "models/player/scifi_male_06.mdl", "models/player/scifi_male_07.mdl", "models/player/scifi_male_09.mdl"}, description = [[Vous êtes membres de l'État Major, vous êtes donc un des plus respecté dans le vénator.]], weapons = {"garde_a_vous", "cross_arms_swep", "weapon_752_dc17"}, command = "cmdem", max = 0, salary = 650, admin = 0, vote = false, hasLicense = false, candemote = false, category = "État-Major",
})
TEAM_VICEAEM = DarkRP.createJob("Vice-Amiral", { color = Color(166, 166, 166), model = {"models/player/scifi_male_02.mdl", "models/player/scifi_male_04.mdl", "models/player/scifi_male_05.mdl", "models/player/scifi_male_06.mdl", "models/player/scifi_male_07.mdl", "models/player/scifi_male_09.mdl"}, description = [[Vous êtes membres de l'État Major, vous êtes donc un des plus respecté dans le vénator.]], weapons = {"garde_a_vous", "cross_arms_swep", "weapon_752_dc17", "weapon_752_westar34"}, command = "vaem", max = 0, salary = 750, admin = 0, vote = false, hasLicense = false, candemote = false, category = "État-Major",
})
TEAM_AMIRAL = DarkRP.createJob("Amiral", { color = Color(166, 166, 166), model = {"models/player/scifi_male_08.mdl", "models/player/scifi_mp3.mdl"}, description = [[Vous êtes membres de l'État Major, vous êtes donc un des plus respecté dans le vénator.]], weapons = {"garde_a_vous", "cross_arms_swep", "weapon_752_dc17", "weapon_752_westar34"}, command = "aem", max = 0, salary = 850, admin = 0, vote = false, hasLicense = false, candemote = false, category = "État-Major",
})
TEAM_CMMDR = DarkRP.createJob("Commodore", { color = Color(166, 166, 166), model = {"models/player/scifi_male_08.mdl", "models/player/scifi_mp3.mdl"}, description = [[Vous êtes membres de l'État Major, vous êtes donc un des plus respecté dans le vénator.]], weapons = {"garde_a_vous", "cross_arms_swep", "weapon_752_dc17", "weapon_752_westar34"}, command = "cem", max = 0, salary = 1000, admin = 0, vote = false, hasLicense = false, candemote = false, category = "État-Major",
})
TEAM_GAEM = DarkRP.createJob("Grand-Amiral", { color = Color(166, 166, 166), model = {"models/player/scifi_bill.mdl"}, description = [[Vous êtes membres de l'État Major, vous êtes donc un des plus respecté dans le vénator.]], weapons = {"garde_a_vous", "cross_arms_swep", "weapon_752_dc17", "weapon_752_westar34"}, command = "gaem", max = 0, salary = 2500, admin = 0, vote = false, hasLicense = false, candemote = false, category = "État-Major",
})
TEAM_REPUBLIC = DarkRP.createJob("ct 666th", { color = Color(2, 2, 2, 255), model = { "models/machine/clones/meds/med_03/med_03.mdl", "models/machine/clones/meds/med_002/med_002.mdl", "models/machine/srsp/inferno/inferno_01.mdl" }, description = [[ct 666]], weapons = {"stunstick", "tfa_swch_dc15a", "tfa_752_dc15s_expanded", "weapon_camo", "wep_jack_job_drpradio"}, command = "ct666", max = 0, salary = 25, admin = 0, vote = false, hasLicense = false, candemote = false, PlayerSpawn = function(ply) ply:SetMaxHealth(600) ply:SetHealth(600) ply:SetArmor(350) end
})
TEAM_REPUBLIC = DarkRP.createJob("Commandant 41st", { color = Color(7, 7, 7, 255), model = {"models/reizer_cgi_p2/41_gree/41_gree.mdl"}, description = [[clone troopers]], weapons = {"wep_jack_job_drpradio", "tfa_swch_dc15a", "tfa_752_dc15s_expanded", "stunstick"} command = "cmd 41st", max = 0, salary = 25, admin = 0, vote = false, hasLicense = false, candemote = false, PlayerSpawn = function(ply) ply:SetMaxHealth(600) ply:SetHealth(600) ply:SetArmor(300) end
})
TEAM_REPUBLIC = DarkRP.createJob("Vice-Commandant 41st", { color = Color(7, 7, 7, 255), model = {"models/reizer_cgi_p2/41_col/41_col.mdl"}, description = [[clone troopers]], weapons = {"wep_jack_job_drpradio", "tfa_swch_dc15a", "tfa_752_dc15s_expanded","stunstick"} command = "vcmd 41st", max = 0, salary = 25, admin = 0, vote = false, hasLicense = false, candemote = false, PlayerSpawn = function(ply) ply:SetMaxHealth(550) ply:SetHealth(550) ply:SetArmor(250) end
})
TEAM_REPUBLIC = DarkRP.createJob("Major 41st", { color = Color(7, 7, 7, 255), model = {"models/reizer_cgi_p2/41_maj/41_maj.mdl"}, description = [[clone troopers]], weapons = {"wep_jack_job_drpradio", "tfa_swch_dc15a", "tfa_752_dc15s_expanded","stunstick"} command = "mjr 41st", max = 0, salary = 25, admin = 0, vote = false, hasLicense = false, candemote = false, PlayerSpawn = function(ply) ply:SetMaxHealth(500) ply:SetHealth(500) ply:SetArmor(225) end
})
TEAM_REPUBLIC = DarkRP.createJob("Capitaine 41st", { color = Color(7, 7, 7, 255), model = {"models/reizer_cgi_p2/41_cpt/41_cpt.mdl"}, description = [[clone troopers]], weapons = {"wep_jack_job_drpradio", "tfa_swch_dc15a", "tfa_752_dc15s_expanded","stunstick"} command = "cpt 41st", max = 0, salary = 25, admin = 0, vote = false, hasLicense = false, candemote = false, PlayerSpawn = function(ply) ply:SetMaxHealth(450) ply:SetHealth(450) ply:SetArmor(200) end
})
TEAM_REPUBLIC = DarkRP.createJob("Lieutenant 41st", { color = Color(7, 7, 7, 255), model = {"models/reizer_cgi_p2/41_lt/41_lt.mdl"}, description = [[clone troopers]], weapons = {"wep_jack_job_drpradio", "tfa_swch_dc15a", "tfa_752_dc15s_expanded"}, command = "ltn 41st", max = 0, salary = 25, admin = 0, vote = false, hasLicense = false, candemote = false, PlayerSpawn = function(ply) ply:SetMaxHealth(400) ply:SetHealth(400) ply:SetArmor(175) end
})
TEAM_REPUBLIC = DarkRP.createJob("Adjudant 41st", { color = Color(7, 7, 7, 255), model = {"models/reizer_cgi_p2/41_sgt/41_sgt.mdl"}, description = [[clone troopers]], weapons = {"wep_jack_job_drpradio", "tfa_swch_dc15a", "tfa_752_dc15s_expanded"}, command = "adj 41st", max = 0, salary = 25, admin = 0, vote = false, hasLicense = false, candemote = false, PlayerSpawn = function(ply) ply:SetMaxHealth(350) ply:SetHealth(350) ply:SetArmor(150) end
})
TEAM_REPUBLIC = DarkRP.createJob("Sergent 41st", { color = Color(7, 7, 7, 255), model = {"models/reizer_cgi_p2/41_sgt/41_sgt.mdl"}, description = [[clone troopers]], weapons = {"wep_jack_job_drpradio", "tfa_swch_dc15a", "tfa_752_dc15s_expanded"}, command = "sgt 41st", max = 0, salary = 25, admin = 0, vote = false, hasLicense = false, candemote = false, PlayerSpawn = function(ply) ply:SetMaxHealth(300) ply:SetHealth(300) ply:SetArmor(125) end
})
TEAM_REPUBLIC = DarkRP.createJob("Caporal 41st", { color = Color(7, 7, 7, 255), model = {"models/reizer_cgi_p2/41_d2/41_d2.mdl"}, description = [[clone troopers]], weapons = {"wep_jack_job_drpradio", "tfa_swch_dc15a", "tfa_752_dc15s_expanded"}, command = "cpl 41st", max = 0, salary = 25, admin = 0, vote = false, hasLicense = false, candemote = false, PlayerSpawn = function(ply) ply:SetMaxHealth(250) ply:SetHealth(250) ply:SetArmor(100) end
})
TEAM_REPUBLIC = DarkRP.createJob("Clone Trooper 41st", { color = Color(7, 7, 7, 255), model = {"models/reizer_cgi_p2/41_trp/41_trp.mdl"}, description = [[clone troopers]], weapons = {"wep_jack_job_drpradio", "tfa_swch_dc15a", "tfa_752_dc15s_expanded"}, command = "ct 41st", max = 0, salary = 25, admin = 0, vote = false, hasLicense = false, candemote = false, PlayerSpawn = function(ply) ply:SetMaxHealth(250) ply:SetHealth(250) ply:SetArmor(100) end
})
TEAM_REPUBLIC = DarkRP.createJob("Commandant 5th", { color = Color(7, 7, 7, 255), model = { "models/joshbotts/5th_cc/5th_cc.mdl", "models/joshbotts/5th_mp/5th_mp.mdl" }, description = [[clone troopers]], weapons = {"wep_jack_job_drpradio", "stunstick", "tfa_swch_dc15a", "tfa_752_dc15s_expanded"}, command = "cmd 5th", max = 0, salary = 25, admin = 0, vote = false, hasLicense = false, candemote = false, PlayerSpawn = function(ply) ply:SetMaxHealth(600) ply:SetHealth(600) ply:SetArmor(275) end
})
TEAM_REPUBLIC = DarkRP.createJob("Vice-Commandant 5th", { color = Color(7, 7, 7, 255), model = {"models/joshbotts/5th_cc/5th_cc.mdl"}, description = [[clone troopers]], weapons = {"wep_jack_job_drpradio", "stunstick", "tfa_swch_dc15a", "tfa_752_dc15s_expanded"}, command = "vcmd 5th", max = 0, salary = 25, admin = 0, vote = false, hasLicense = false, candemote = false, PlayerSpawn = function(ply) ply:SetMaxHealth(550) ply:SetHealth(550) ply:SetArmor(250) end
})
TEAM_REPUBLIC = DarkRP.createJob("Major 5th", { color = Color(7, 7, 7, 255), model = {"models/joshbotts/5th_xo/5th_xo.mdl"}, description = [[clone troopers]], weapons = {"wep_jack_job_drpradio", "stunstick", "tfa_swch_dc15a", "tfa_752_dc15s_expanded"}, command = "mjr 5th", max = 0, salary = 25, admin = 0, vote = false, hasLicense = false, candemote = false, PlayerSpawn = function(ply) ply:SetMaxHealth(500) ply:SetHealth(500) ply:SetArmor(225) end
})
TEAM_REPUBLIC = DarkRP.createJob("Capitaine 5th", { color = Color(7, 7, 7, 255), model = {"models/joshbotts/5th_captain/5th_captain.mdl"}, description = [[clone troopers]], weapons = {"wep_jack_job_drpradio", "stunstick", "tfa_swch_dc15a", "tfa_752_dc15s_expanded"}, command = "cpt 5th", max = 0, salary = 25, admin = 0, vote = false, hasLicense = false, candemote = false, PlayerSpawn = function(ply) ply:SetMaxHealth(450) ply:SetHealth(450) ply:SetArmor(200) end
})
TEAM_REPUBLIC = DarkRP.createJob("Lieutenant 5th", { color = Color(7, 7, 7, 255), model = {"models/joshbotts/5th_lieutenant/5th_lieutenant.mdl"}, description = [[clone troopers]], weapons = {"wep_jack_job_drpradio", "stunstick", "tfa_swch_dc15a", "tfa_752_dc15s_expanded"}, command = "ltn 5th", max = 0, salary = 25, admin = 0, vote = false, hasLicense = false, candemote = false, PlayerSpawn = function(ply) ply:SetMaxHealth(400) ply:SetHealth(400) ply:SetArmor(175) end
})
TEAM_REPUBLIC = DarkRP.createJob("Adjudant 5th", { color = Color(7, 7, 7, 255), model = {"models/joshbotts/5th_lieutenant/5th_lieutenant.mdl"}, description = [[clone troopers]], weapons = {"wep_jack_job_drpradio", "stunstick", "tfa_swch_dc15a", "tfa_752_dc15s_expanded"}, command = "adj 5th", max = 0, salary = 25, admin = 0, vote = false, hasLicense = false, candemote = false, PlayerSpawn = function(ply) ply:SetMaxHealth(350) ply:SetHealth(350) ply:SetArmor(150) end
})
TEAM_REPUBLIC = DarkRP.createJob("Sergent 5th", { color = Color(7, 7, 7, 255), model = {"models/joshbotts/5th_sgt/5th_sgt.mdl"}, description = [[clone troopers]], weapons = {"wep_jack_job_drpradio", "stunstick", "tfa_swch_dc15a", "tfa_752_dc15s_expanded"}, command = "sgt 5th", max = 0, salary = 25, admin = 0, vote = false, hasLicense = false, candemote = false, PlayerSpawn = function(ply) ply:SetMaxHealth(300) ply:SetHealth(300) ply:SetArmor(125) end
})
TEAM_REPUBLIC = DarkRP.createJob("Caporal 5th", { color = Color(7, 7, 7, 255), model = {"models/joshbotts/5th_trp/5th_trp.mdl"}, description = [[clone troopers]], weapons = {"wep_jack_job_drpradio", "stunstick", "tfa_swch_dc15a", "tfa_752_dc15s_expanded"}, command = "cpl 5th", max = 0, salary = 25, admin = 0, vote = false, hasLicense = false, candemote = false, PlayerSpawn = function(ply) ply:SetMaxHealth(250) ply:SetHealth(250) ply:SetArmor(100) end
})
TEAM_REPUBLIC = DarkRP.createJob("ct 5th", { color = Color(7, 7, 7, 255), model = {"models/joshbotts/5th_trp/5th_trp.mdl"}, description = [[clone troopers]], weapons = {"wep_jack_job_drpradio", "stunstick", "tfa_swch_dc15a", "tfa_752_dc15s_expanded"}, command = "ct 5th", max = 0, salary = 25, admin = 0, vote = false, hasLicense = false, candemote = false, PlayerSpawn = function(ply) ply:SetMaxHealth(250) ply:SetHealth(250) ply:SetArmor(100) end
})
 
elessaro34

elessaro34

Geek suprême
Messages
271
Score réaction
109
Points
150
T’a oublié une virgule ligne 241, en 2 jours tu aurais pu lire le message d’erreur quand même ^^
 
  • J'aime
Réactions: Mr.Ionut_YT, lampoule et NoaGamingFR
  • Initiateur de la discussion
S

Scaryjo

Geek
Messages
3
Score réaction
0
Points
65
elessaro34 à dit:
T’a oublié une virgule ligne 241, en 2 jours tu aurais pu lire le message d’erreur quand même ^^

Mercciiii j'essaye directement, sorry c'est juste que c'est pas moi qui fait les jobs so j'avais de la difficulté ! MAIS JTM <3
 
Discord d'entraide
Rejoignz-nous sur Discord