Message Lua

  • Initiateur de la discussion pierre2010
  • Date de début
  • Initiateur de la discussion
P

pierre2010

Geek
Messages
8
Score réaction
0
Points
65
Bonjour,lorsque je rajouter mon metier cela me fait une erreur Lua la voila:
[ERROR] A runtime error has occurred in "your jobs" on line -1.
The best help I can give you is this:

The category of "Mafieux" ("mafieux") 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 voila mon Job :

TEAM_MAFIEUX = DarkRP.createJob("Mafieux", {
color = Color(202, 43, 43, 255),
model = {
"models/characters/gallaha.mdl",
"models/humans/jacketntie/male_07.mdl",
"models/humans/jacketntie/male_07.mdl"},
description = [[Vous faite partie des Mafieux un des Gangs les plus influent]],
weapons = {},
command = "mafieux ",
max = 6,
salary = 120,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "mafieux",
})
 
P

PCMalexis

Geek suprême
Messages
600
Score réaction
49
Points
125
Salut,

Crée la catégorie Mafieux
 
  • Initiateur de la discussion
P

pierre2010

Geek
Messages
8
Score réaction
0
Points
65
Diablos26

Diablos26

Psychopathe
Messages
951
Score réaction
326
Points
315
Dans category.lua. Ceci dit tu peux aussi virer simplement la ligne de la catégorie dans ton job si les catégories ne t'importent peu.
 
  • Initiateur de la discussion
P

pierre2010

Geek
Messages
8
Score réaction
0
Points
65
Diablos26 à dit:
Dans category.lua. Ceci dit tu peux aussi virer simplement la ligne de la catégorie dans ton job si les catégories ne t'importent peu.
Bonjour,j'ai deja mis mon job dans la category.lua mais cela ne change rien voila le category.lua

--[[-----------------------------------------------------------------------
Categories
---------------------------------------------------------------------------
The categories of the default F4 menu.

Please read this page for more information:
http://wiki.darkrp.com/index.php/DarkRP:Categories

In case that page can't be reached, here's an example with explanation:

DarkRP.createCategory{
name = "Citizens", -- 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.
}


Add new categories under the next line!
---------------------------------------------------------------------------]]
DarkRP.createCategory{ b
name = "Mafieux", -- 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.
}
 
P

PCMalexis

Geek suprême
Messages
600
Score réaction
49
Points
125
pierre2010 à dit:
Bonjour,j'ai deja mis mon job dans la category.lua mais cela ne change rien voila le category.lua

--[[-----------------------------------------------------------------------
Categories
---------------------------------------------------------------------------
The categories of the default F4 menu.

Please read this page for more information:
http://wiki.darkrp.com/index.php/DarkRP:Categories

In case that page can't be reached, here's an example with explanation:

DarkRP.createCategory{
name = "Citizens", -- 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.
}


Add new categories under the next line!
---------------------------------------------------------------------------]]
DarkRP.createCategory{ b
name = "Mafieux", -- 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.
}
Supprime le "b" avant name
 
  • J'aime
Réactions: Diablos26
  • Initiateur de la discussion
P

pierre2010

Geek
Messages
8
Score réaction
0
Points
65
Oki,je vais faire ceci
 
Discord d'entraide
Rejoignz-nous sur Discord