Bonjour! J'ai un petit problème, en fait, j'ai mis des addons sur mon serveur, ils marchent car via le menu de gmod je peux les utilisés. Mais lorsque je veu les mettres dans le shop et dans l'inventaire des jobs, ils n’apparaissent pas! S'il y a un moyen d'y remédier, ce serais cool!
Merci d'avance!
Code:
--[[---------------------------------------------------------------------------
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:
https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua
For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
Add jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_POLICE = DarkRP.createJob("Policer", {
color = Color(25, 25, 170, 255),
model = {
"models/portal/nypd/nypdmale_03.mdl",
"models/portal/nypd/nypdmale_04.mdl",
"models/portal/nypd/nypdmale_05.mdl",
"models/portal/nypd/nypdmale_06.mdl",
"models/portal/nypd/nypdmale_07.mdl",
"models/portal/nypd/nypdmale_03_arm.mdl",
"models/portal/nypd/nypdmale_04_arm.mdl",
"models/portal/nypd/nypdmale_06_arm.mdl",
"models/portal/nypd/nypdmale_07_arm.mdl",
},
description = [[Vous vous chargez de la sécurité de la ville.
Tapez /wanted <nom> afin d'alerter les jouers d'un criminèle]],
weapons = {"weapon_arc_atmcard", "arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker", "taser"},
command = "cp",
max = 4,
salary = GAMEMODE.Config.normalsalary * 50,
admin = 0,
vote = false,
hasLicense = true,
ammo = {
["pistol"] = 60,
},
category = "Civil Protection",
})
TEAM_CITIZEN = AddExtraTeam("Citizen", {
color = Color(20, 150, 20, 255),
model = {
"models/player/Group01/Female_01.mdl",
"models/player/Group01/Female_02.mdl",
"models/player/Group01/Female_03.mdl",
"models/player/Group01/Female_04.mdl",
"models/player/Group01/Female_06.mdl",
"models/player/Group01/Male_01.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 = [[Vous êtes sans emploie (pour ne pas dire chômeur! :D), ne restez pas sans et cherchez en un!]],
command = "citizen",
weapons = {"hl2_combo_fists", "weapon_arc_atmcard"},
max = 0,
salary = 45,
admin = 0,
vote = false,
hasLicense = false
category = "Citizens",
})
TEAM_GUN = DarkRP.createJob("Vendeur d'armes", {
color = Color(255, 140, 0, 255),
model = "models/player/monk.mdl",
description = [[Vous devez créer une enseigne afin de vendre des amres. En vendre à la sauvage (hors de votre enseigne) ou à une personne sans liscence, sera pénaliser! N'oubliez pas que vous n'avez pas de liscence d'armes!]],
weapons = {"weapon_arc_atmcard"},
command = "gundealer",
max = 2,
salary = GAMEMODE.Config.normalsalary * 30,
admin = 0,
vote = false,
hasLicense = false,
category = "Citizens",
})
TEAM_MEDIC = DarkRP.createJob("Médecin", {
color = Color(47, 79, 79, 255),
model = "models/player/kleiner.mdl",
description = [[Vous devez soigner des gens gratuitement (à votre compte), ou contre de l'argent.]],
weapons = {"weapon_arc_atmcard", "med_kit"},
command = "medic",
max = 3,
salary = GAMEMODE.Config.normalsalary * 35,
admin = 0,
vote = false,
hasLicense = false,
medic = true,
category = "Citizens",
})
TEAM_CHIEF = DarkRP.createJob("Commissaire", {
color = Color(20, 20, 255, 255),
model = "models/player/combine_soldier_prisonguard.mdl",
description = [[Vous êtes le commissaire, votre travail est le même que celui des policiers mais c'est à vous de diriger les opération!
Taper /wanted <name> pour alerter la présence d'un criminèle.
Taper /jailpos pour emprisonner quelqu'un dans une cellule spécifique]],
weapons = {"weapon_arc_atmcard", "arrest_stick", "unarrest_stick", "weapon_deagle2", "stunstick", "door_ram", "weaponchecker", "taser"},
command = "chief",
max = 1,
salary = GAMEMODE.Config.normalsalary * 1.67,
admin = 0,
vote = false,
hasLicense = true,
chief = true,
NeedToChangeFrom = TEAM_POLICE,
ammo = {
["pistol"] = 60,
},
category = "Civil Protection",
})
--[[---------------------------------------------------------------------------
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)
Merci d'avance!