Bonjour, vous voulez que le job dans le menu F4 soit invisible? Mais qu'il soit visible uniquement si le joueur est dans la whiteliste de ce job? Ici je vous donne la solution.

--Note:
--EXEMPLE avec un seul métier:
"Civil Protection"
--Ligne que vous avez besoin d'ajouter dans jobrelated.lua:
Ligne 1: customCheck
Ligne 2: CustomCheckFailMsg = "You are not in the withelist!",


TEAM_POLICE = DarkRP.createJob("Civil Protection", {
color = Color(25, 25, 170, 255),
model = {"models/player/police.mdl", "models/player/police_fem.mdl"},
description = [[The protector of every citizen that lives in the city.
You have the power to arrest criminals and protect innocents.
Hit a player with your arrest baton to put them in jail.
Bash a player with a stunstick and they may learn to obey the law.
The Battering Ram can break down the door of a criminal, with a warrant for their arrest.
The Battering Ram can also unfreeze frozen props (if enabled).
Type /wanted to alert the public to the presence of a criminal.]]
,
weapons = {"arrest_stick", "door_ram", "weaponchecker"},
command = "cp",
max = 4,
salary = GAMEMODE.Config.normalsalary * 1.45,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
]"pistol"] = 60,
},
category = "Civil Protection",
customCheck = function(ply) if CLIENT then return PlychangeAllowed(ply,"Civil Protection") else return true end end, --Respectez les majuscules et les espaces!!!

CustomCheckFailMsg = "You are not in the withelist!",
})

--Pourquoi ça ne marche pas? Si le nom original du métier est "Civil Protection" vous devez le respecter dans sa totalité.
Quelques mauvais exemple:

--Mauvaise majuscules:"civil protection"
--Des espaces aux mauvais endroit:"CivilProtection" or " Civil Protection " or "Civil Protection "
--Le mauvais nom de métier, exemple: "Mayor"


26a0 Erreur que je vois régulièrement qui mérite sa place ici:

Ce qui est Valide dans le nom du Job c'est "Civil Protection"

Quelques Exemple non valide:
"civil protection"
"CivilProtection"
" Civil Protection "
" Civil Protection"
"Civil Protection "
"Civil Protection     "