En 🇬🇧 WIKI EN
☰ 1. Is it possible to keep the modification and disable the network update?
Yes, by copying the source code of your modification and pasting it into the configuration file.
Then replace the variable
nordahl_cfg_3906.skin 
☰ 2. How do I disable the server-side script?
In the configuration file of the addons set to 0 the variable
nordahl_cfg_3906.enable_update_serverside_to_clientside So:
enable_update_serverside_to_clientside = 0
☰ 3. How to customize the background image?
In the customization menu select: Admin: Background Image
Indicate the link of your image. To get it go to imgur, right click on the image, copy the link of the image.
Only admins will be able to change the background image of the F4 menu of your server. You can restrict the ranks in the configuration file.
If you have an image with a wrong texture pink and black it means that you have copied the link of the page and not the link of the image, you can make the difference by seeing the extension jpg or png at the end of the link. Since version 2.0 you don't need to store the image on your server, nor in your workshop collection.
☰ 4. Why some pre-configured commands don't work?
If you have customized some of the original commands, make sure you change them in the configuration file. The default commands are there as a suggestion, these are the most used commands, if the command in question doesn't work even when my script is uninstalled it means that your DarkRP doesn't know this command originally and so my F4 menu sends the command correctly but it is not linked to any existing functionality.
☰ 5. How do I add new commands?
In the configuration file : nordahl_f4_menu/lua/autorun/nordahl_f4_config.lua
Find the table : darkrp_commands_list
You can specify in the type variable of the command to add if it is a chat command, console command, function. You will find several pre-recorded examples to inspire you.
Example :
{ title="General",
cmds={
{type="function",name="Example 1",func=function()nordahl_cfg_3906.ChatMsg("This is a simple example can be edited in the config file")end},
{type="command",name="Drop money",desc="How much money would you like to drop?",cmd="say",arg1="/dropmoney"},
{type="command",name="Change RP Name",desc="Enter the RP Name you would like to have.",cmd="say",arg1="/rpname"},
{type="chat",name="Drop held weapon",arg="/drop"},
{type="ply_selection",name="Start demotion vote",desc="Enter a reason to demote",cmd="say",arg1="/demote"},
{type="chat",name="Sell all doors",arg="/unownalldoors"},
{type="chat",name="Request gun license",arg="/requestlicense"},
},
},
☰ 6. How to hide unnecessary commands for others based on Jobs?
In the configuration file of your Gmod server : nordahl_f4_menu/lua/autorun/nordahl_f4_config.lua
Find the table : darkrp_commands_list
Find the command group and add : job_access={["Mayor"]=1}
To add several jobs simply separate them with a comma, for example : job_access={["Mayor"]=1,["YourJob"]=1}
There's no limit.
Example for the Mayor's command list to be displayed only for the Mayors, (this avoids unnecessary command pollution of the interface for all the other users who are not in the
Mayor group) :
{ title="Mayor Commands",
cmds={
{type="command",name="Start a lottery",desc="How much money should entering the lottery cost?",cmd="say",arg1="/lottery"},
{type="chat",name="Initiate lockdown",arg="/lockdown"},
{type="chat",name="End lockdown",arg="/unlockdown"},
{type="command",name="Introduce new law",desc="What law would you like to introduce?",cmd="say",arg1="/addlaw"},
},
job_access={["Mayor"]=1},
},
This example is already provided in the configuration file, you can modify it or use it as inspiration to add your own commands.
☰ 7. How to hide unnecessary commands for others based on their ULX rank?
In the configuration file of your Gmod server : nordahl_f4_menu/lua/autorun/nordahl_f4_config.lua
Find the table : darkrp_commands_list
Find or Create the group of commands you want to restrict and hide and add : group_access={["superadmin"]=1}
To add several ULX rows simply separate them with a comma, e.g : group_access={["superadmin"]=1,["admin"]=1}
Example for the
superadmin command list to be displayed only for
superadmin, this avoids unnecessary command pollution of the interface for all other users who are not the ulx
superadmin rank:
{ title="- Superadmin Commands -",
cmds={
{type="command",name="Example 1",cmd="say",desc="Only Superadmin can see it in this example, you can edit in the config file"},
},
group_access={["superadmin"]=1},
},
This example is already provided in the configuration file, you can modify it or use it as inspiration to add your own commands.
☰ 8. Turning off or changing button sound effects
In the configuration file of your Gmod server : nordahl_f4_menu/lua/autorun/nordahl_f4_config.lua
Find the table : nordahl_cfg_3906.sound
nordahl_cfg_3906.sound={
openf4="ambient/machines/keyboard5_clicks.wav",
closef4="ambient/machines/keyboard4_clicks.wav",
press="ambient/machines/keyboard2_clicks.wav",
}
☰ 9. How do I enable or disable background blurring?
In the configuration file of your Gmod server : nordahl_f4_menu/lua/autorun/nordahl_f4_config.lua
Find the variable : enable_BackgroundBlur
nordahl_cfg_3906.enable_BackgroundBlur=0 --Enabled= 1 / Disabled= 0
☰ 10. How do I remove a link button?
The link button is the area at the bottom left where when you click on it, it opens the link you configured from the panel or the configuration file.
By default I have left my links there to serve as an example.
For example, to delete the Donate button, just insert an empty value in the field. Then the button will disappear until you set up a link. Just keep in mind that for a button without a link, it has no use so you don't need to display it.
☰ 11. Gmod Pink and black textured background image problem
This problem does not exist anymore since version 2.0, the system does not use the content put on the workshop to display background images and modify them dynamically. A simple link of an image is enough. So what is below is now useless, I leave it for those using a version lower than 2.0 If you have an image with an erroneous pink and black texture it means that the image is not in the location you have selected or the image does not exist on the client side so think about making it accessible to your users.
To share your textures there are two methods.
- Either via your Fastdl
- Either by including the content in your workshop package.
I have created a documentation on how to publish workshop content here :
Wiki/En/Publish an addon on the Gmod workshop This works best when the content exists on your customer's hard drive. 😉
☰ 12. Where to upload the material?
To get your background image link, upload your image (material) to
imgur.com/upload You drag the image, once sent right click on the image > copy image link.
Please note that the image link is not the link to the page. The image link must end in .png or .jpg
☰ 13. Why is the banner distorted or pixelated? What is the resolution of the banner?
This problem comes from the wrong resolution, by default before uploading on the image host your banner must have this resolution: 162 x 76
☰ 14. How to customize fonts in the F4 Menu? (Possible since version 2.7)
In the configuration file find the variable: cfg.custom_fonts = "Trebuchet24"
Replace Trebuchet24 with the name of your font.
☰ 15. How to change the key to open the F4 menu, between F1, F2, F3?
cfg.FX_to_Open="F4" --0 = OFF, Defines whether the DarkRP F4 menu can be opened with the F1 F2 F3 F4 key.
☰ 16. How to Hide the DarkRP Whitelisted Jobs in the F4 Menu?
Hello, do you want the job in the F4 menu to be invisible? But only visible if the player is in the whitelist of this job? Here I give you the solution.
--Note:
--EXAMPLE with only one job: "Civil Protection"
--Line you need to add in 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, --Respect capitalization and spaces!!!
CustomCheckFailMsg = "You are not in the withelist !",
})
-Why doesn't it work? If the original name of the job is "Civil Protection" you must respect it in its entirety.
Some bad examples:
--Bad capitalization: "civil protection"
--Spaces in the wrong place : "CivilProtection" or "Civil Protection" or "Civil Protection".
--Wrong job name, example: "Mayor".
Error that I see regularly that deserves its place here:
What is valid in the job name is "Civil Protection".
Some invalid examples:
"civil protection"
"CivilProtection"
" Civil Protection "
" Protection civile "
"Protection civile "
"Protection civile "
Fr 🇫🇷 WIKI FR
☰ 1. Est ce possible de garder la modification et de désactiver la mise à jour réseau?
Oui, en copiant le code source de votre modification et en le collant dans le fichier configuration.
Remplacez alors la variable
nordahl_cfg_3906.skin 
☰ 2. Comment désactiver le script coté serveur?
Dans le fichier de configuration de l'addons mettez sur 0 la variable
nordahl_cfg_3906.enable_update_serverside_to_clientside Ainsi :
enable_update_serverside_to_clientside = 0
☰ 3. Comment Customiser l'image de fond?
Dans le menu de customisation selectionnez : Admin : Background Image
Indiquez le lien de votre image. Pour l'obtenir allez sur imgur, cliquez droit sur l'image, copier le lien de l'image
Uniquement les admins pourront modifier l'image de fond du menu F4 de votre serveur. Vous pouvez restreindre les rangs dans le fichier de configuration.
Si vous avez une image avec une texture erroné rose et noir cela signifie que vous avez copier le lien de la page et non le lien de l'image, on peut faire la différence en voyant l'extension jpg ou png à la fin du lien. Depuis la version 2.0 vous n'avez plus besoin de stocker sur votre serveur l'image, ni dans vos collection workshop.
☰ 4. Pourquoi certaines commandes pré-configurées ne fonctionnent-elles pas ?
Si vous avez customisé certaines commandes original, assurez vous de les modifier dans le fichier configuration. Les commandes par défaut sont là en suggestion, il s'agit des commandes les plus utilisés, si la commande en question ne fonctionne pas même quand mon script est désinstallé cela signifie que votre DarkRP ne connait pas cette commande à l'origine et donc mon menu F4 envoie correctement la commande mais elle est lié à aucune fonctionnalité existante.
☰ 5. Comment ajouter des nouvelles commandes?
Dans le fichier configuration : nordahl_f4_menu/lua/autorun/nordahl_f4_config.lua
Trouvez la table : darkrp_commands_list
Vous pouvez préciser dans la variable type de la commande à ajouter si c'est une commande de chat, command console, function. Vous y découvrirez plusieurs exemples pré-enregistré pour vous en inspirer.
Exemple :
{ title="General",
cmds={
{type="function",name="Example 1",func=function()nordahl_cfg_3906.ChatMsg("This is a simple example can be edited in the config file")end},
{type="command",name="Drop money",desc="How much money would you like to drop?",cmd="say",arg1="/dropmoney"},
{type="command",name="Change RP Name",desc="Enter the RP Name you would like to have.",cmd="say",arg1="/rpname"},
{type="chat",name="Drop held weapon",arg="/drop"},
{type="ply_selection",name="Start demotion vote",desc="Enter a reason to demote",cmd="say",arg1="/demote"},
{type="chat",name="Sell all doors",arg="/unownalldoors"},
{type="chat",name="Request gun license",arg="/requestlicense"},
},
},
☰ 6. Comment cacher les commandes inutiles pour les autres en fonction des Jobs?
Dans le fichier configuration de votre serveur Gmod : nordahl_f4_menu/lua/autorun/nordahl_f4_config.lua
Trouvez la table : darkrp_commands_list
Trouvez le groupes de commandes et ajoutez : job_access={["Mayor"]=1}
Pour ajouter plusieurs jobs il suffit simplement de les séparer par une virgule, exemple : job_access={["Mayor"]=1,["YourJob"]=1}
Il n'y a pas de limite.
Exemple pour que la liste de commandes des Mayor s'affiche uniquement pour les Mayor, (ça évite la pollution de commandes inutile de l'interface pour tous les autres utilisateurs qui ne sont pas dans le groupe
Mayor) :
{ title="Mayor Commands",
cmds={
{type="command",name="Start a lottery",desc="How much money should entering the lottery cost?",cmd="say",arg1="/lottery"},
{type="chat",name="Initiate lockdown",arg="/lockdown"},
{type="chat",name="End lockdown",arg="/unlockdown"},
{type="command",name="Introduce new law",desc="What law would you like to introduce?",cmd="say",arg1="/addlaw"},
},
job_access={["Mayor"]=1},
},
Cet exemple est déjà fourni dans le fichier de configuration, vous pouvez le modifier ou vous en inspirer pour ajouter vos propres commandes.
☰ 7. Comment cacher les commandes inutiles pour les autres en fonction de leur rang ULX?
Dans le fichier configuration de votre serveur Gmod : nordahl_f4_menu/lua/autorun/nordahl_f4_config.lua
Trouvez la table : darkrp_commands_list
Trouvez ou Crée le groupe de commandes que vous souhaitez restreindre et cacher et ajoutez : group_access={["superadmin"]=1}
Pour ajouter plusieurs rang ULX il suffit simplement de les séparer par une virgule, exemple : group_access={["superadmin"]=1,["admin"]=1}
Exemple pour que la liste de commandes des
superadmin s'affiche uniquement pour les
superadmin, ça évite la pollution de commandes inutile de l'interface pour tous les autres utilisateurs qui ne sont pas le rang ulx
superadmin :
{ title="- Superadmin Commands -",
cmds={
{type="command",name="Example 1",cmd="say",desc="Only Superadmin can see it in this example, you can edit in the config file"},
},
group_access={["superadmin"]=1},
},
Cet exemple est déjà fourni dans le fichier de configuration, vous pouvez le modifier ou vous en inspirer pour ajouter vos propres commandes.
☰ 8. Désactiver ou modifier les effets sonores des boutons
Dans le fichier configuration de votre serveur Gmod : nordahl_f4_menu/lua/autorun/nordahl_f4_config.lua
Trouvez la table : nordahl_cfg_3906.sound
nordahl_cfg_3906.sound={
openf4="ambient/machines/keyboard5_clicks.wav",
closef4="ambient/machines/keyboard4_clicks.wav",
press="ambient/machines/keyboard2_clicks.wav",
}
☰ 9. Comment puis-je activer ou désactiver le flou de fond ?
Dans le fichier configuration de votre serveur Gmod : nordahl_f4_menu/lua/autorun/nordahl_f4_config.lua
Trouvez la variable : enable_BackgroundBlur
nordahl_cfg_3906.enable_BackgroundBlur=0 --Activé = 1 / Désactivé = 0
☰ 10. Comment supprimer un bouton lien?
Le bouton lien c'est la zone en bas à gauche où lorsque vous cliquez dessus, ça ouvre le lien que vous avez configuré depuis le panneau ou le fichier configuration.
Par défaut j'y ai laissé mes liens pour vous servir d'exemple.
Pour supprimer par exemple le bouton Donate il suffit d’insérer une valeur vide dans le champ. Alors le bouton disparaitra jusqu'à ce que vous configurez un lien. Gardez simplement à l'esprit que pour un bouton sans lien, il n'a pas d'utilité donc pas besoin de l'afficher.
☰ 11. Problème d'image de fond texture rose et noire
Ce problème n'existe plus depuis la version 2.0, le système n'utilise plus le contenue mis sur le workshop pour afficher des images de fond et les modifier dynamiquement. Un simple lien d'une image suffit. Donc ce qui se trouve en dessous est maintenant inutile, je le laisse pour ceux utilisant une version inférieur à la 2.0 Si vous avez une image avec une texture erroné rose et noir cela signifie que l'image n'est pas dans l'emplacement que vous avez sélectionnez ou l'image n'existe pas coté client pensez donc à la rendre accessible à vos utilisateurs.
Pour partager vos textures il existe deux méthodes.
- Soit via votre Fastdl.
- Soit en incluant le contenu dans votre package du workshop.
J'ai crée une documentation sur comment publier du contenue sur le workshop ici :
Wiki/Fr/Publier un addon sur le workshop de Gmod Cela fonctionne mieux quand le contenu existe sur le disque dur de vos clients. 😉
☰ 12. Où uploader le material?
Pour obtenir votre lien d'image de fond, uploadez votre image (material) sur
imgur.com/upload Vous glissez l'image, une fois envoyé clique droit sur l'image > copier le lien de l'image.
Attention pas le lien de la page mais bien le lien de l'image. Le lien de l'image doit finir par .png ou .jpg
☰ 13. Pourquoi la bannière est déformé ou pixelisé? Quel est la résolution de la bannière?
Ce problème vient suite à la mauvaise résolution, par défaut avant d'uploader sur l'hébergeur d'image votre bannière doit avoir cette résolution : 162 x 76
☰ 14. Comment customiser les polices d'écriture dans le menu F4? (Possible depuis la version 2.7)
Dans le fichier configuration trouvez la variable : cfg.custom_fonts = "Trebuchet24"
Remplacez Trebuchet24 par le nom de votre police d'écriture.
☰ 15. Comment modifier la touche pour ouvrir le menu F4, entre F1, F2, F3?
cfg.FX_to_Open="F4" --0 = OFF, Définit si le menu DarkRP F4 peut être ouvert avec la touche F1 F2 F3 F4.
☰ 16. Comment Cacher les Métier du DarkRP Whitelisté dans le Menu F4?
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, --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 "
" Protection civile "
"Protection civile "
"Protection civile "