- Initiateur de la discussion
Feytone
Chuck Norris
- Messages
- 4 741
- Score réaction
- 1 301
- Points
- 600
Bonjour,
voici mon jobs.lua :
Oui il n'y a que ça et pourtant voilà le problème marqué. J'ai rien modifié en dehors du disabled Default juste pour mettre des true et des false.
Voici l'erreur :
[ERROR] A runtime error has occurred in "lua/darkrp_customthings/jobs.lua" on line -1.
The best help I can give you is this:
GAMEMODE.DefaultTeam is not set to an existing job.
Hints:
- This may happen when you disable the default citizen job. Make sure you update GAMEMODE.DefaultTeam to the new default team.
- GAMEMODE.DefaultTeam may be set to a job that does not exist anymore. Did you remove the job you had set to default?
- The error being in jobs.lua is a guess. This is usually right, but the problem might lie somewhere else.
The responsibility for the error above lies with (the authors of) one (or more) of these files:
jobs.lua, settings.lua, disabled_defaults.lua or any of your other custom files.
------- End of Simplerr error -------
Une idée pour m'aider ?
voici mon jobs.lua :
Code:
TEAM_CITOYEN = DarkRP.createJob("Citoyen", { color = Color(0, 191, 42, 255), model = {"models/player/Group01/female_01.mdl"}, description = [[Le citoyen possède un RP sans limite, c'est la liberté !]], weapons = {}, command = "citoyen", max = 75, salary = 45, admin = 0, vote = false, hasLicense = false, candemote = false,
})
TEAM_STAFF = DarkRP.createJob("Staff", { color = Color(23, 168, 0, 255), model = {"models/player/gman_high.mdl"}, description = [[Le Staff est là pour aider au bon fonctionnement de la communauté.]], weapons = {}, command = "staff", max = 10, salary = 0, admin = 0, vote = false, hasLicense = false, candemote = false, customCheck = function(ply) return table.HasValue({"admin", "superadmin", "chef-admin", "moderateur"}, ply:GetNWString("usergroup")) end, CustomCheckFailMsg = [["Ce métier est pour le Staff"]],
})
TEAM_POMPIER = DarkRP.createJob("Pompier", { color = Color(0, 191, 42, 255), model = {"models/player/paramed/pompier_homme2.mdl"}, description = [[Le Pompier sauve des vies à travers des interventions musclées !]], weapons = {}, command = "pompier", max = 4, salary = 125, admin = 0, vote = false, hasLicense = false, candemote = false, type = "pompier",
})
--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_CITOYEN
Voici l'erreur :
[ERROR] A runtime error has occurred in "lua/darkrp_customthings/jobs.lua" on line -1.
The best help I can give you is this:
GAMEMODE.DefaultTeam is not set to an existing job.
Hints:
- This may happen when you disable the default citizen job. Make sure you update GAMEMODE.DefaultTeam to the new default team.
- GAMEMODE.DefaultTeam may be set to a job that does not exist anymore. Did you remove the job you had set to default?
- The error being in jobs.lua is a guess. This is usually right, but the problem might lie somewhere else.
The responsibility for the error above lies with (the authors of) one (or more) of these files:
jobs.lua, settings.lua, disabled_defaults.lua or any of your other custom files.
------- End of Simplerr error -------
Une idée pour m'aider ?