Problème job.lua

  • Initiateur de la discussion
BCZ Gaming

BCZ Gaming

Psychopathe
Messages
1 301
Score réaction
129
Points
275
Voila j'ai cette erreur qui apparait:
Code:
[ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 50.
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 -------
[ERROR] A runtime error has occurred in "gamemodes/darkrp/gamemode/modules/base/sv_gamemode_functions.lua" on line 693.
The best help I can give you is this:
DarkRP was unable to introduce player "Zappy2928|Dev Gmod|hellcase.com" to the game. Expect further errors and shit generally being fucked!
Hints: - This error most likely does not stand on its own, and previous serverside errors have a very good chance of telling you the cause. - Note that errors from another addon could cause this. Specifically when they're thrown during 'PlayerInitialSpawn'. - This error can also be caused by some other addon returning a value in 'PlayerInitialSpawn', though that is less likely. - Errors in your DarkRP configuration (jobs, shipments, etc.) could also cause this. Earlier errors should tell you when this is the case.
The responsibility for the error above lies with (the authors of) one (or more) of these files:
Voici le jobs en question:
Code:
TEAM_SDF = DarkRP.createJob("SDF", { color = Color(110, 75, 10, 255), model = {"models/ninja/vaas.mdl",}, description = [[Vous êtes un SDF !]], weapons = {"keys", "weapon_arc_atmcard", "weapon_fists", "weapon_bugbait"}, command = "sdf", max = 3, salary = 0, admin = 0, vote = false, hasLicense = false, candemote = false, hobo = true,
}),
job au-dessus et en-dessous

Code:
TEAM_CITOYEN = DarkRP.createJob("Citoyen", { color = Color(13, 255, 0, 255), model = { "models/player/Group01/Female_01.mdl", "models/player/Group01/Female_02.mdl", "models/player/Group01/Female_03.mdl", "models/player/Group01/Female_04.mdl", "models/player/Group01/Female_06.mdl", "models/player/group01/male_01.mdl", "models/player/Group01/Male_02.mdl", "models/player/Group01/male_03.mdl", "models/player/Group01/Male_04.mdl", "models/player/Group01/Male_05.mdl", "models/player/Group01/Male_06.mdl", "models/player/Group01/Male_07.mdl", "models/player/Group01/Male_08.mdl", "models/player/Group01/Male_09.mdl", }, description = [[Vous êtes un Citoyen !]], weapons = {"keys", "weapon_arc_atmcard", "weapon_fists", "id"}, command = "citoyen", max = 0, salary = 20, admin = 0, vote = false, hasLicense = false, candemote = false, category = "DIVERS",
}),
TEAM_SDF = DarkRP.createJob("SDF", { color = Color(110, 75, 10, 255), model = {"models/ninja/vaas.mdl",}, description = [[Vous êtes un SDF !]], weapons = {"keys", "weapon_arc_atmcard", "weapon_fists", "weapon_bugbait"}, command = "sdf", max = 3, salary = 0, admin = 0, vote = false, hasLicense = false, candemote = false, hobo = true,
}),
TEAM_POLICE = DarkRP.createJob("Policier", { color = Color(0, 21, 255, 255), model = { "models/player/santosrp/male_02_santosrp.mdl", "models/player/santosrp/male_04_santosrp.mdl", "models/player/santosrp/male_05_santosrp.mdl", "models/player/santosrp/male_06_santosrp.mdl", "models/player/santosrp/male_07_santosrp.mdl", "models/player/santosrp/male_08_santosrp.mdl", "models/player/santosrp/male_09_santosrp.mdl", }, description = [[Vous êtes le Policier !]], weapons = {"keys", "stungun", "weapon_fists", "arrest_stick", "unarrest_stick", "weapon_r_handcuffs", "door_ram", "stunstick", "weapon_arc_atmcard", "weapon_cuff_police", "policebadgewallet", "m9k_colt1911", "weapon_driverstick",}, command = "policier", max = 6, salary = 75, admin = 0, vote = true, hasLicense = true, ammo = { ["ammo_stungun"] = 50, }, candemote = false, category = "FORCES DE L'ORDRE", PlayerDeath = function(ply, weapon, killer) ply:changeTeam(GAMEMODE.DefaultTeam, true) if killer:IsPlayer() then DarkRP.notifyAll(0, 4, "Un membre du Gouvernement a été assassiné !.") else DarkRP.notifyAll(0, 4, "Un membre du Gouvernement est mort.") end end
}),
Merci d'avance!
 
thepsyca

thepsyca

Psychopathe
Messages
2 164
Score réaction
648
Points
365
Mauvais :
Code:
}),
Good :
Code:
})
https://fptje.github.io/glualint-web/
 
  • J'aime
Réactions: BCZ Gaming
  • Initiateur de la discussion
BCZ Gaming

BCZ Gaming

Psychopathe
Messages
1 301
Score réaction
129
Points
275
thepsyca à dit:
Mauvais :
Code:
}),
Good :
Code:
})
https://fptje.github.io/glualint-web/
Nikel. Merci
 
Discord d'entraide
Rejoignz-nous sur Discord