Problème de catégorie apparemment inexistante

  • Initiateur de la discussion
Larest

Larest

Geek suprême
Messages
126
Score réaction
14
Points
115
Bonjour,
J'aurai besoin de votre aide afin de régler ce problème qui me fait tourner e rond depuis 3/4 jours. Je vous remercies d'avance pour vos réponses.
Cordialement Chrys Leroy [Fondateur / AveriaRP]

Fichier catégories présent sur mon serveur :

Catrégories.PNG


Message d'erreur présent sur mon serveur in game :

Erreur in game.PNG
 
theosol

theosol

Geek suprême
Messages
305
Score réaction
12
Points
115
ta catégorie civil n est pas crée...
 
theosol

theosol

Geek suprême
Messages
305
Score réaction
12
Points
115
et envoie t jobs
 
  • J'aime
Réactions: Larest
theosol

theosol

Geek suprême
Messages
305
Score réaction
12
Points
115
Larest à dit:
--[[---------------------------------------------------------------------------
DarkRP custom jobs
---------------------------------------------------------------------------
This file contains your custom jobs.
This file should also contain jobs from DarkRP that you edited.

Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
Once you've done that, copy and paste the job to this file and edit it.

The default jobs can be found here:

For examples and explanation please visit this wiki page:

Add your custom jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_CITIZEN = DarkRP.createJob("Citoyen", {
color = Color(20, 150, 20, 255),
model = {
"models/humans/modern/female_01.mdl",
"models/humans/modern/male_02_03.mdl",
"models/humans/modern/male_07_01.mdl",
"models/humans/modern/male_09_04.mdl"

},
description = [[Citoyenneté La citoyenneté est le fait pour un individu, pour une famille ou pour un groupe, d'être reconnu officiellement comme citoyen, c'est-à-dire membre d'une ville ayant le statut de cité, ou plus généralement d'un État.]],
weapons = {"idcard", "weapon_arc_atmcard", "weapon_fists"},
command = "citizen",
max = 0,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens",
})

TEAM_MEDECIN = DarkRP.createJob("Infirmier a Domicile", {
color = Color(255, 255, 255, 255),
model = {
"models/player/portal/male_04_medic.mdl",
"models/player/portal/male_02_medic.mdl",
"models/player/portal/male_09_medic.mdl",
"models/player/portal/male_05_medic.mdl"
},
description = [[Soignez les gens !]],
weapons = {"idcard", "weapon_arc_atmcard", "item_healthkit", "fas2_ifak"},
command = "inf",
max = 4,
salary = 200,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Médical",
})

TEAM_POLICIER = DarkRP.createJob("Policier", {
color = Color(0, 41, 255, 255),
model = {
"models/player/kerry/policeru_11.mdl",
"models/player/kerry/policeru_10.mdl",
"models/player/kerry/policeru_14.mdl"
},
description = [[Un policier ou agent de police est un membre de la police, qu'il porte ou non l'uniforme et dont la fonction est de faire respecter la loi, de maintenir l'ordre et d'assurer la sécurité publique.]],
weapons = {"idcard", "police_n_pass", "weapon_arc_atmcard", "weapon_fists", "guigui_handcuffs", "guigui_handcuffs_lockpick", "fas2_famas", "fas2_p226"},
command = "poli",
max = 8,
salary = 500,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
category = "Gouvernement",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(150)
end
})

TEAM_COMMISSAIRE = DarkRP.createJob("Commissaire", {
color = Color(0, 41, 255, 255),
model = {
"models/player/kerry/policeru_01.mdl",
"models/player/kerry/policeru_02.mdl",
"models/player/kerry/policeru_03.mdl",
"models/player/kerry/policeru_05.mdl",
"models/player/kerry/policeru_06.mdl",
"models/player/kerry/policeru_07.mdl"
},
description = [[Un commissaire est une personne chargée par une autorité d'exécuter en son nom des fonctions temporaires. Il vient du verbe latin (committere : envoyer en mission) et a donné « commission ». C'est également le nom que l'on donne à un membre d'une commission.]],
weapons = {"idcard", "police_n_pass", "weapon_arc_atmcard", "weapon_fists", "guigui_handcuffs", "guigui_handcuffs_lockpick", "fas2_famas", "fas2_p226"},
command = "comi",
max = 2,
salary = 650,
admin = 0,
vote = false,
hasLicense = true,
candemote = false,
category = "Gouvernement",
PlayerSpawn = function(ply)
ply:SetMaxHealth(100)
ply:SetHealth(100)
ply:SetArmor(150)
end
})

TEAM_POMPIER = DarkRP.createJob("Pompier", {
color = Color(255, 148, 0, 255),
model =
{"models/player/portal/male_05_fireman.mdl"
},
description = [[Éteignez les feux !]],
weapons = {"weapon_extinguisher"},
command = "pompier",
max = 4,
salary = 350,
admin = 0,
vote = true,
hasLicense = false,
candemote = false,
category = "Gouvernement"
})

TEAM_GUN = DarkRP.createJob("Vendeur D'armes", {
color = Color(255, 0, 0, 255),
model = {"models/fearless/02.mdl"},
description = [[Vendez des armes et faites vous du fric sale ou propre à vous de voir ! -]],
weapons = {"idcard", "weapon_arc_atmcard", "weapon_fists"},
command = "armu",
max = 4,
salary = 250,
admin = 0,
vote = true,
hasLicense = true,
candemote = false,
category = "Services Public",
})

TEAM_BANQUE = DarkRP.createJob("Banquier", {
color = Color(247, 0, 255, 255),
model = {
"models/fearless/wsuit15.mdl",
"models/fearless/suit07.mdl"
},
description = [[Hébergez les money printer des citoyens, gérez l'économie de la ville !]],
weapons = {"idcard", "weapon_arc_atmcard"},
command = "banq",
max = 2,
salary = 600,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Services Public",
})

TEAM_TAXI = DarkRP.createJob("Conducteur de taxi", {
color = Color(0, 150, 0),
model = {"models/player/Group01/male_01.mdl",
"models/player/Group01/male_02.mdl",
"models/player/Group01/male_03.mdl",
"models/player/Group01/male_04.mdl",
"models/player/Group01/male_05.mdl",
"models/player/Group01/male_06.mdl",
"models/player/Group01/male_07.mdl",
"models/player/Group01/male_08.mdl",
"models/player/Group01/male_09.mdl"
},
description = [[]],
weapons = {"idcard", "weapon_fists", "weapon_arc_atmcard"},
command = "taxis",
max = 2,
salary = 55,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Services Public",
})

TEAM_SDF = DarkRP.createJob("SDF", {
color = Color(0, 150, 0),
model = {"models/player/niko_bellic/slow.mdl"},
description = [[]],
weapons = {"idcard", "weapon_fists", "weapon_bugbait", "weapon_arc_atmcard"},
command = "sdf",
max = 3,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Citizens",
})

TEAM_GARDE = DarkRP.createJob("Garde du corps", {
color = Color(0, 150, 0),
model = {"models/player/guard_pack/guard_02.mdl"},
description = [[]],
weapons = {"idcard", "weapon_fists", "stungun", "m9k_deagle", "weaponchecker", "weapon_arc_atmcard"
},
command = "garde",
max = 5,
salary = 70,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Services Public",
})

TEAM_MAYOR = DarkRP.createJob("Maire", {
color = Color(145, 0, 0),
model = {"models/obama/obama.mdl"},
description = [[]],
weapons = {"idcard", "weapon_fists", "weapon_arc_atmcard"},
command = "maire",
max = 1,
salary = 150,
admin = 0,
vote = true,
hasLicense = true,
mayor = true,
candemote = false,
category = "Gouvernement",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Le maire a ete tue et est demote.")
else
DarkRP.notifyAll(0, 4, "Le maire est mort et a ete demote.")
end
end
})

TEAM_GANGSTERS = DarkRP.createJob("Gangster", {
color = Color(0, 150, 0),
model = {"models/player/Group03/male_01.mdl",
"models/player/Group03/male_02.mdl",
"models/player/Group03/male_03.mdl",
"models/player/Group03/male_04.mdl",
"models/player/Group03/male_05.mdl",
"models/player/Group03/male_06.mdl",
"models/player/Group03/male_07.mdl",
"models/player/Group03/male_08.mdl",
"models/player/Group03/male_09.mdl"},
description = [[]],
weapons = {"idcard", "weapon_fists", "weapon_arc_atmcard"},
command = "gangster",
max = 5,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Illègal",
})

TEAM_CHEFGANGSTERS = DarkRP.createJob("Chef des Gangsters", {
color = Color(0, 150, 0),
model = {""},
description = [[]],
weapons = {"idcard", "weapon_fists", "weapon_arc_atmcard"},
command = "chefgangster",
max = 1,
salary = 0,
admin = 0,
vote = true,
hasLicense = false,
candemote = false,
category = "Illègal",
})

TEAM_MAFIEUX = DarkRP.createJob("Mafieux", {
color = Color(0, 150, 0),
model = {"models/humans/mafia/male_02.mdl",
"models/fearless/mafia02.mdl",
"models/fearless/mafia04.mdl",
"models/fearless/mafia06.mdl",
"models/fearless/mafia07.mdl",
"models/fearless/mafia09.mdl"},
description = [[]],
weapons = {"idcard", "weapon_fists", "weapon_arc_atmcard"},
command = "mafieux",
max = 5,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Illègal",
})

TEAM_PARRAIN = DarkRP.createJob("Parrain", {
color = Color(0, 150, 0),
model = {"models/vito.mdl"},
description = [[]],
weapons = {"idcard", "weapon_fists", "weapon_arc_atmcard"},
command = "parrain",
max = 1,
salary = 55,
admin = 0,
vote = true,
hasLicense = false,
candemote = false,
category = "Illègal",
})

TEAM_CHEFBLOODZ = DarkRP.createJob("Chef Bloodz", {
color = Color(0, 150, 0),
model = {"models/player/bloodz/slow_1.mdl"},
description = [[]],
weapons = {"idcard", "weapon_fists", "weapon_arc_atmcard"},
command = "chefbloodz",
max = 1,
salary = 0,
admin = 0,
vote = true,
hasLicense = false,
candemote = false,
category = "Illègal",
})

TEAM_STAFF = DarkRP.createJob("Staff", {
color = Color(255, 255, 255, 255),
model = {"models/player/anon/anon.mdl"},
description = [[Staff !]],
weapons = {"idcard", "weapon_fists", "weapon_arc_atmcard"},
command = "staff",
max = 0,
salary = 0,
admin = 1,
vote = false,
hasLicense = true,
candemote = false,
category = "Staff",
PlayerSpawn = function(ply)
ply:SetMaxHealth(10000)
ply:SetHealth(10000)
ply:SetArmor(10000)
end
})

TEAM_BLOODZ = DarkRP.createJob("Bloodz", {
color = Color(0, 150, 0),
model = {"models/player/bloodz/slow_2.mdl",
"models/player/bloodz/slow_3.mdl"
},
description = [[]],
weapons = {"idcard", "weapon_fists", "weapon_arc_atmcard"},
command = "bloodz",
max = 5,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Illègal",
})

TEAM_CHEFCRIPZ = DarkRP.createJob("Chef Cripz", {
color = Color(0, 150, 0),
model = {"models/player/cripz/slow_2.mdl"},
description = [[]],
weapons = {"idcard", "weapon_fists", "weapon_arc_atmcard"},
command = "chefcripz",
max = 1,
salary = 55,
admin = 0,
vote = true,
hasLicense = false,
candemote = false,
category = "Illègal",
})

TEAM_CRIPZ = DarkRP.createJob("Cripz", {
color = Color(0, 150, 0),
model = {"models/player/cripz/slow_3.mdl",
"models/player/cripz/slow_1.mdl"
},
description = [[]],
weapons = {"idcard", "weapon_fists", "weapon_arc_atmcard"},
command = "cripz",
max = 5,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Illègal",
})

TEAM_METH = DarkRP.createJob("Trafiquant de Meth", {
color = Color(0, 150, 0),
model = {"models/bloocobalt/splinter cell/chemsuit_cod.mdl"},
description = [[]],
weapons = {"idcard", "weapon_fists", "weapon_arc_atmcard"},
command = "meth",
max = 5,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Meth",
})

TEAM_DEALER = DarkRP.createJob("Dealer", {
color = Color(0, 150, 0),
model = {"models/bloocobalt/splinter cell/chemsuit_cod.mdl"},
description = [[]],
weapons = {"idcard", "weapon_fists", "weapon_arc_atmcard"},
command = "dealer",
max = 5,
salary = 0,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Trafiquant",
})

TEAM_ORGANE = DarkRP.createJob("Trafiquant d'Organes", {
color = Color(0, 150, 0),
model = {"models/player/Group01/male_01.mdl",
"models/player/Group01/male_02.mdl",
"models/player/Group01/male_03.mdl",
"models/player/Group01/male_04.mdl",
"models/player/Group01/male_05.mdl",
"models/player/Group01/male_06.mdl",
"models/player/Group01/male_07.mdl",
"models/player/Group01/male_08.mdl",
"models/player/Group01/male_09.mdl"
},
description = [[]],
weapons = {"idcard", "weapon_fists", "weapon_arc_atmcard", "scalpel"},
command = "organe",
max = 5,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Trafiquant",
})



--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_CITIZEN
--[[---------------------------------------------------------------------------
Define which teams belong to civil protection
Civil protection can set warrants, make people wanted and do some other police related things
---------------------------------------------------------------------------]]
GAMEMODE.CivilProtection = {
[TEAM_POLICE] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_MOB)
vérifie bien tes catégorie pour les job
 
Discord d'entraide
Rejoignz-nous sur Discord