How to Add a Whitelist to a FiveM Server
How to control who joins your server
Whitelisting prevents anyone from joining the server unless they are registered. This ensures roleplay quality and reduces griefers.
- 1Step 1
Choose a Script
There are many whitelist scripts. Choose one that suits you (like Discord Whitelist) and download it.
- 2Step 2
Install Script
Upload the script to the 'resources' folder and add 'ensure script_name' to your server.cfg.
- 3Step 3
Add Players
Open the script config or database and add the identifiers (Steam Hex, Discord ID, License) of allowed players.
- 4Step 4
Restart
Restart the server to enable the system. Any unregistered player will now be kicked automatically.
Whitelist Management Tips
- Use Discord Whitelist to link access to Discord roles automatically.
- Ensure you ask for correct identifiers to avoid login issues.
- Review the list periodically and remove inactive players.
- Set a clear Kick Message explaining how to apply.
Frequently asked questions
Can I whitelist without a script?
Yes. txAdmin has a built-in whitelist in its settings: you can allow only admins, approved players, members of your Discord server or holders of a Discord role.
Which identifier should I whitelist?
The license identifier is the most stable because it belongs to the player's Rockstar license. Discord ID is practical when your community applies through Discord.
How do players apply for the whitelist?
Most servers use a form or ticket on Discord. Put the link in the kick message so a refused player knows exactly where to apply.
Does a whitelist protect the server from attacks?
No. It decides who can play, not who can reach the server. Network attacks are stopped by DDoS protection at the host.
Run this guide on a ready server
Need a server for this guide? FiveM server hosting from SNG comes with txAdmin, OneSync and DDoS protection, and the SNG CDN for FiveM delivers your server files to players from inside Saudi Arabia.
Related FiveM guides
Need help linking Discord?
