erreur lua

  • Initiateur de la discussion darkforxtyv
  • Date de début
  • Initiateur de la discussion
D

darkforxtyv

Geek suprême
Messages
114
Score réaction
3
Points
110
bonjour j'ai cette erreur lua je ne sais plus comment faire pour la regle :


There is 1 Lua problem!
Please check your console for more information!
[ERROR] A runtime error has occurred in "your jobs" on line -1.
The best help I can give you is this:
The category of "Citoyen" ("Citoyen") 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 -------
et j'ai ca pour tous les jobs merci d'avance de votre aide
 
SkydrazZ

SkydrazZ

Psychopathe
Messages
1 590
Score réaction
458
Points
340
tu met ca dans le fichier des catégories :

DarkRP.createCategory{
name = "citoyen", -- The name of the category.
categorises = "jobs", -- What it categorises. MUST be one of "jobs", "entities", "shipments", "weapons", "vehicles", "ammo".
startExpanded = true, -- Whether the category is expanded when you open the F4 menu.
color = Color(0, 107, 0, 255), -- The color of the category header.
canSee = function(ply) return true end, -- OPTIONAL: whether the player can see this category AND EVERYTHING IN IT.
sortOrder = 100, -- OPTIONAL: With this you can decide where your category is. Low numbers to put it on top, high numbers to put it on the bottom. It's 100 by default.
}
 
RedTroz

RedTroz

Geek suprême
Messages
825
Score réaction
233
Points
195
darkforxtyv à dit:
bonjour j'ai cette erreur lua je ne sais plus comment faire pour la regle :


There is 1 Lua problem!
Please check your console for more information!
[ERROR] A runtime error has occurred in "your jobs" on line -1.
The best help I can give you is this:
The category of "Citoyen" ("Citoyen") 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 -------
et j'ai ca pour tous les jobs merci d'avance de votre aide
Il suffit de supprimer category = "",

-----------AVANT----------
TEAM_CITOYEN = DarkRP.createJob("Citoyen", {
color = Color(0, 0, 0, 255),
model = {"////////////////"},
description = [[/////////]],
weapons = {},
command = "citoyen",
max = 10,
salary = 50,
admin = 0,
vote = true,
hasLicense = false,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})

------------APRES--------------

TEAM_CITOYEN = DarkRP.createJob("Citoyen", {
color = Color(0, 0, 0, 255),
model = {""},
description = [[]],
weapons = {},
command = "citoyen",
max = 10,
salary = 50,
admin = 0,
vote = true,
hasLicense = false,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
})
 
SkydrazZ

SkydrazZ

Psychopathe
Messages
1 590
Score réaction
458
Points
340
RedTroz à dit:
Il suffit de supprimer category = "",

-----------AVANT----------
TEAM_CITOYEN = DarkRP.createJob("Citoyen", {
color = Color(0, 0, 0, 255),
model = {"////////////////"},
description = [[/////////]],
weapons = {},
command = "citoyen",
max = 10,
salary = 50,
admin = 0,
vote = true,
hasLicense = false,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "",
})

------------APRES--------------

TEAM_CITOYEN = DarkRP.createJob("Citoyen", {
color = Color(0, 0, 0, 255),
model = {""},
description = [[]],
weapons = {},
command = "citoyen",
max = 10,
salary = 50,
admin = 0,
vote = true,
hasLicense = false,
candemote = true,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
})
Aussi ! xD
 
RedTroz

RedTroz

Geek suprême
Messages
825
Score réaction
233
Points
195
L

Larry

Geek
Messages
80
Score réaction
10
Points
60
En général, on laisse CITIZENS... Enfin, peut-être que je me trompe !
 
Adam Belabdi

Adam Belabdi

Geek
Messages
91
Score réaction
10
Points
85
Larry à dit:
En général, on laisse CITIZENS... Enfin, peut-être que je me trompe !
Ouais.
 
Discord d'entraide
Rejoignz-nous sur Discord