- Initiateur de la discussion
Alain LeThug
Psychopathe
- Messages
- 1 012
- Score réaction
- 211
- Points
- 280
Bonsoir, j'ai un gros problème, j'ai crée des jobs et crée des catégories relatives à ces derniers, tout est bon, ça a été fait avec csite.io, sauf qu'en jeu, il me donnent cette erreur :
Voici mon job :
Et ma catégorie, dans le fichier categories.lua :
Merci d'avance !
Code:
[ERROR] A runtime error has occurred in "your jobs" on line -1.
The best help I can give you is this:
The category of "Commandant Clone" ("Troupes régulières") does not exist!
Hints: - Make sure the category is created with DarkRP.createCategory. - The category name is case sensitive! - Categories must be created before DarkRP finished loading.
The responsibility for the error above lies with (the authors of) one (or more) of these files:
your jobs
------- End of Simplerr error -------
Code:
TEAM_COMMANDANTCLONE = DarkRP.createJob("Commandant Clone", { color = Color(17, 136, 68, 255), model = {"models/reizer_cgi_p2/clone_cmd/clone_cmd.mdl"}, description = [[]], weapons = {"wep_jack_job_drpradio", "tfa_752_dc15s_expanded", "tfa_dc15a_expanded", "voice_amplifier"}, command = "COMMANDANTCLONE", max = 0, salary = 0, admin = 0, vote = false, hasLicense = false, candemote = false, category = "Troupes régulières", PlayerSpawn = function(ply) ply:SetMaxHealth(200) ply:SetHealth(200) ply:SetArmor(100) end
})
Code:
DarkRP.createCategory{ name = "Troupes régulières", categorises = "jobs", startExpanded = true, color = Color(34, 184, 152, 255), canSee = function(ply) return true end, sortOrder = 10
}