mes catégories ne marchent pas.

  • Initiateur de la discussion
Dwenn

Dwenn

Têtard
Messages
6
Score réaction
0
Points
10
Mes catégories ne marchent pas, j'ai regardé tout les tutos possibles mais rien ne résout mon problème. Voici le code : (je suis sur RyzPerf)
Add new categories under the next line!
---------------------------------------------------------------------------]]
DarkRP.createCategory {
name = "Forces de l'Ordre",
categorises = "jobs",
startExpanded = true,
color = Color(53, 66, 194, 255),
canSee = function(ply) return true end,
sortOrder = 106
}
DarkRP.createCategory {
name = "Métiers Temporaires",
categorises = "jobs",
startExpanded = true,
color = Color(53, 66, 194, 255),
canSee = function(ply) return true end,
sortOrder = 101
}
DarkRP.createCategory {
name = "Gouvernement",
categorises = "jobs",
startExpanded = true,
color = Color(53, 66, 194, 255),
canSee = function(ply) return true end,
sortOrder = 102
}
DarkRP.createCategory {
name = "Métiers Légaux",
categorises = "jobs",
startExpanded = true,
color = Color(53, 66, 194, 255),
canSee = function(ply) return true end,
sortOrder = 103
}
DarkRP.createCategory {
name = "Services publics de la Ville",
categorises = "jobs",
startExpanded = true,
color = Color(53, 66, 194, 255),
canSee = function(ply) return true end,
sortOrder = 104
}
DarkRP.createCategory {
name = "Métiers Illégaux",
categorises = "jobs",
startExpanded = true,
color = Color(53, 66, 194, 255),
canSee = function(ply) return true end,
sortOrder = 105
}
 
diddi

diddi

Geek suprême
Messages
669
Score réaction
47
Points
140
Tu veux dire que les catégories ne s'affichent pas dans le F4 ?
 
  • Initiateur de la discussion
Dwenn

Dwenn

Têtard
Messages
6
Score réaction
0
Points
10
oui, les jobs s'affiche mais les catégories non..
 
diddi

diddi

Geek suprême
Messages
669
Score réaction
47
Points
140
Dwenn à dit:
oui, les jobs s'affiche mais les catégories non..
tu as bien ajouter les category aux métiers dans le jobs.lua ?
 
  • Initiateur de la discussion
Dwenn

Dwenn

Têtard
Messages
6
Score réaction
0
Points
10
les jobs qui devrait normalement se mettre dans les nouvelles catégories, ils se mettent dans la catégorie "Other".
 
  • Initiateur de la discussion
Dwenn

Dwenn

Têtard
Messages
6
Score réaction
0
Points
10
diddi à dit:
tu as bien ajouter les category aux métiers dans le jobs.lua ?
oui, voici le code des jobs :
TEAM_CITOYEN = DarkRP.createJob("Citoyen", {
color = Color(60, 103, 17, 255),
model = {
"models/player/zelpa/female_01_b_extended.mdl",
"models/player/zelpa/female_01_extended.mdl",
"models/player/zelpa/female_02_b_extended.mdl",
"models/player/zelpa/female_02_extended.mdl",
"models/player/zelpa/female_03_b_extended.mdl",
"models/player/zelpa/female_03_extended.mdl",
"models/player/zeplpa/female_04_b_extended.mdl",
"models/player/zelpa/female_04_extended.mdl",
"models/player/zelpa/female_06_b_extended.mdl",
"models/player/zelpa/female_06_extended.mdl",
"models/player/zelpa/female_07_b_extended.mdl",
"models/player/zelpa/female_07_extended.mdl",
"models/player/zelpa/male_01_extended.mdl",
"models/player/zelpa/male_02_extended.mdl",
"models/player/zelpa/male_03_extended.mdl",
"models/player/zelpa/male_04_extended.mdl",
"models/player/zelpa/male_05_extended.mdl",
"models/player/zelpa/male_06_extended.mdl",
"models/player/zelpa/male_07_extended.mdl",
"models/player/zelpa/male_08_extended.mdl",
"models/player/zelpa/male_09_extended.mdl",
"models/player/zelpa/male_10_extended.mdl",
"models/player/zelpa/male_11_extended.mdl"
},
description = [[ ]],
weapons = {},
command = "citoyen",
max = 0,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Métiers Légaux",
citizenpm = true
})

TEAM_BITCOINS = DarkRP.createJob("Mineur de Bitcoins", {
color = Color(255, 187, 0, 255),
model = {
"models/player/zelpa/female_01_b_extended.mdl",
"models/player/zelpa/female_01_extended.mdl",
"models/player/zelpa/female_02_b_extended.mdl",
"models/player/zelpa/female_02_extended.mdl",
"models/player/zelpa/female_03_b_extended.mdl",
"models/player/zelpa/female_03_extended.mdl",
"models/player/zelpa/female_04_b_extended.mdl",
"models/player/zelpa/female_04_extended.mdl",
"models/player/zelpa/female_06_b_extended.mdl",
"models/player/zelpa/female_06_extended.mdl",
"models/player/zelpa/female_07_b_extended.mdl",
"models/player/zelpa/female_07_extended.mdl",
"models/player/zelpa/male_01_extended.mdl",
"models/player/zelpa/male_02_extended.mdl",
"models/player/zelpa/male_03_extended.mdl",
"models/player/zelpa/male_04_extended.mdl",
"models/player/zelpa/male_05_extended.mdl",
"models/player/zelpa/male_06_extended.mdl",
"models/player/zelpa/male_07_extended.mdl",
"models/player/zelpa/male_08_extended.mdl",
"models/player/zelpa/male_09_extended.mdl",
"models/player/zelpa/male_10_extended.mdl",
"models/player/zelpa/male_11_extended.mdl"
},
description = [[ ]],
weapons = {},
command = "btc",
max = 5,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Métiers Légaux",
level=15,
customCheck = function(ply)
return (((ply:getDarkRPVar('level') or 0) >= 15) or ((ply:IsAdmin() or ply:IsUserGroup( "vip" ))))
end,
CustomCheckFailMsg = "Vous devez être VIP ou niveau 15",
citizenpm = true
})

TEAM_MAIRE = DarkRP.createJob("Maire", {
color = Color(60, 103, 17, 255),
model = {"models/fearless/mayor1.mdl" ,"models/fearless/mayor2.mdl" ,
"models/suit_jfk/suit_jfk.mdl", "models/players/mj_tew2_myra.mdl" , "models/player/putin.mdl" ,
"models/Player/Donald_Trump.mdl", "models/Obama/Obama.mdl" },
description = [[ ]],
weapons = {"stungun"},
command = "maire",
max = 1,
salary = 85,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Gouvernement",
level=12,
mayor = true,
customCheck = function(ply)
return (((ply:getDarkRPVar('level') or 0) >= 12) or ((ply:IsAdmin() or ply:IsUserGroup( "vip" ))))
end,
CustomCheckFailMsg = "Vous devez être VIP ou niveau 12"
})

TEAM_MEDECIN = DarkRP.createJob("SAMU", {
color = Color(60, 103, 17, 255),
model = { "models/player/portal/Male_02_Medic.mdl",
"models/player/portal/Male_04_Medic.mdl",
"models/player/portal/Male_05_Medic.mdl",
"models/player/portal/Male_06_Medic.mdl",
"models/player/portal/Male_07_Medic.mdl" ,
"models/player/portal/Male_08_Medic.mdl" ,
"models/player/portal/Male_09_Medic.mdl" },
description = [[ ]],
weapons = {"weapon_defibrillator","dsr_medkit"},
command = "medecin",
max = 6,
salary = 75,
admin = 0,
vote = false,
hasLicense = false,
medic = true,
candemote = false,
category = "Services publics de la Ville"
})

TEAM_CUISINIER = DarkRP.createJob("Pizzaïolo", {
color = Color(242, 0, 255, 255),
model = {"models/fearless/chef1.mdl", "models/fearless/chef2.mdl" },
description = [[ ]],
weapons = {},
command = "cuisinier",
max = 4,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Vendeurs",
cook = true
})

TEAM_FAB_METH = DarkRP.createJob("Fabriquant de Meth", {
color = Color(60, 103, 17, 255),
model = { "models/player/zelpa/female_01_b_extended.mdl",
"models/player/zelpa/female_01_extended.mdl",
"models/player/zelpa/female_02_b_extended.mdl",
"models/player/zelpa/female_02_extended.mdl",
"models/player/zelpa/female_03_b_extended.mdl",
"models/player/zelpa/female_03_extended.mdl",
"models/player/zelpa/female_04_b_extended.mdl",
"models/player/zelpa/female_04_extended.mdl",
"models/player/zelpa/female_06_b_extended.mdl",
"models/player/zelpa/female_06_extended.mdl",
"models/player/zelpa/female_07_b_extended.mdl",
"models/player/zelpa/female_07_extended.mdl",
"models/player/zelpa/male_01_extended.mdl",
"models/player/zelpa/male_02_extended.mdl",
"models/player/zelpa/male_03_extended.mdl",
"models/player/zelpa/male_04_extended.mdl",
"models/player/zelpa/male_05_extended.mdl",
"models/player/zelpa/male_06_extended.mdl",
"models/player/zelpa/male_07_extended.mdl",
"models/player/zelpa/male_08_extended.mdl",
"models/player/zelpa/male_09_extended.mdl",
"models/player/zelpa/male_10_extended.mdl",
"models/player/zelpa/male_11_extended.mdl" },
description = [[ ]],
weapons = {"zmlab_extractor"},
command = "fabmeth",
max = 3,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Métiers Illégaux",
citizenpm = true
})

TEAM_FAB_COC = DarkRP.createJob("Fabriquant de Cocaïne", {
color = Color(60, 103, 17, 255),
model = { "models/player/zelpa/female_01_b_extended.mdl",
"models/player/zelpa/female_01_extended.mdl",
"models/player/zelpa/female_02_b_extended.mdl",
"models/player/zelpa/female_02_extended.mdl",
"models/player/zelpa/female_03_b_extended.mdl",
"models/player/zelpa/female_03_extended.mdl",
"models/player/zelpa/female_04_b_extended.mdl",
"models/player/zelpa/female_04_extended.mdl",
"models/player/zelpa/female_06_b_extended.mdl",
"models/player/zelpa/female_06_extended.mdl",
"models/player/zelpa/female_07_b_extended.mdl",
"models/player/zelpa/female_07_extended.mdl",
"models/player/zelpa/male_01_extended.mdl",
"models/player/zelpa/male_02_extended.mdl",
"models/player/zelpa/male_03_extended.mdl",
"models/player/zelpa/male_04_extended.mdl",
"models/player/zelpa/male_05_extended.mdl",
"models/player/zelpa/male_06_extended.mdl",
"models/player/zelpa/male_07_extended.mdl",
"models/player/zelpa/male_08_extended.mdl",
"models/player/zelpa/male_09_extended.mdl",
"models/player/zelpa/male_10_extended.mdl",
"models/player/zelpa/male_11_extended.mdl"},
description = [[ ]],
weapons = {},
command = "fabcoc",
max = 3,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Métiers Illégaux",
citizenpm = true
})

TEAM_MINEUR = DarkRP.createJob("Mineur", {
color = Color(60, 103, 17, 255),
model = {"models/cultist/miner_m.mdl", "models/cultist/miner_f.mdl"},
description = [[ ]],
weapons = {"zrms_pickaxe","zrms_builder"},
command = "mineur",
max = 4,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Métiers Légaux"
})
 
diddi

diddi

Geek suprême
Messages
669
Score réaction
47
Points
140
tu utilises quel f4 menu
 
  • Initiateur de la discussion
Dwenn

Dwenn

Têtard
Messages
6
Score réaction
0
Points
10
le xenin f4
 
  • Initiateur de la discussion
Dwenn

Dwenn

Têtard
Messages
6
Score réaction
0
Points
10
MesrineFrozen

MesrineFrozen

Geek suprême
Messages
69
Score réaction
2
Points
105
CapriH

CapriH

Geek
Messages
172
Score réaction
4
Points
95
Essayes avec ce code:

DarkRP.createCategory {
name = "Métiers Temporaires",
categorises = "jobs",
startExpanded = true,
color = Color(255, 0, 0),
sortOrder = 101,
canSee = function(ply)
return true
end,
}
 
Discord d'entraide
Rejoignz-nous sur Discord