Facebook

HomeHome🇫🇷 Forum & Support Français🇬🇧 English Forum & SupportWikiLa liste des ServeursTop50ShopTo do ListMemberlistUsergroupsRegisterLog inOriginahl-Scripts
Share | 
 

 [Whitelsit Job System] Comment Cacher les Jobs dans le Menu F4?

View previous topic View next topic Go down 
AuthorMessage
Nordahl

avatar

SteamID64 : 76561198033784269
Posts : 2538

PostSubject: [Whitelsit Job System] Comment Cacher les Jobs dans le Menu F4?   Sun 14 Feb - 3:20

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     "
Back to top Go down
https://scriptfodder.com/users/view/76561198033784269
 
[Whitelsit Job System] Comment Cacher les Jobs dans le Menu F4?
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Pre-WotLK System Requirements
» Tau Smart Missile System
» SYSTEM-OF-A-DOWN app
» TCI Official Forum Ranking System
» Steve Jobs resigns as CEO

Permissions in this forum:You cannot reply to topics in this forum
Zworld Afterlife Zombie Survival Horror :: 🇫🇷 Forum Français :: 
Aide, Support & Requête
 :: 📃 Originahl-Scripts :: 🔨 Tutoriel, Wiki & Règlements
-
Jump to:  
http://projectzomboid.fr/news/news.phphttps://www.online.net/frhttp://zworld-afterlife.fr/https://originahl-scripts.com/gmod-scripts