Skip to content
Black Friday · −50 % off your first invoice on Xeon VPS with code BF50XEON, −30 % off our other services with BF30 · domain names and dedicated servers excluded See our plans
CloudFive
Log in

01

Three places to put a whitelist

A whitelist refuses the connection of any player who has not been accepted beforehand. On a FiveM server, it can live in three places:

  • In txAdmin: the administration tool shipped with the server checks every connection, along with bans. Nothing to install, and the framework you use does not matter.
  • In the framework: ESX Legacy ships the esx_whitelist resource since version 1.16; QBCore and Qbox have an option in their configuration.
  • In a separate resource, often tied to an application website or a Discord bot.

In every case, the server recognises a player by their identifiers, not by their name, which can be changed freely:

  • license:: tied to the player's Rockstar account. It is the one used by txAdmin's approval mode.
  • discord:: their Discord account. It is only sent if the Discord desktop app is open on the player's computer; the web version is not enough.
  • fivem:: their Cfx.re account, when they are signed in to it in FiveM.

Pick one system only. Two whitelists active at the same time produce refusals nobody can explain: the player is accepted by one and rejected by the other. This guide does not go back over the rest of txAdmin (accounts, restarts, sanctions), covered in the txAdmin guide, nor over building the server, described in creating a FiveM server.

02

Turning on the whitelist in txAdmin

Open txAdmin, then Settings and the Allowlist tab. Since txAdmin 8.1, the interface says "Allowlist"; earlier versions say "Whitelist". The settings are the same. The first one, Allowlist Mode, offers:

  • Disabled: open server. txAdmin only checks bans.
  • Admin-only (maintenance mode): only players whose fivem: or discord: identifier is attached to a txAdmin administrator account get in. Keep it for updates and testing.
  • Discord Server Member: the player must be a member of your Discord server.
  • Discord Server Roles: they must also hold at least one of the roles you specify there.
  • Approved License: the player's license: identifier must have been approved by an administrator.
  • External Allowlist Resource (since version 8.1): to select when another resource manages the whitelist. txAdmin then filters nothing itself.

The Allowlist Instructions field is required as soon as a mode filters players, meaning all of them except Disabled and Admin-only. This text, limited to 512 characters, is sent to the refused player and shown on the server page in FiveM. Write the steps to follow there, for example: "Application-only server. Join our Discord, open a ticket and give the request ID shown above." Then save the settings.

Worth knowing before going further:

  • the check happens at connection time, after the ban check;
  • when a mode is active, a lock icon is shown next to the server name in the server list;
  • the two Discord modes cannot be selected until txAdmin's Discord bot is enabled.
03

Approved License: approving players one by one

This is the quickest mode to get going: no bot, no role to create. A player's journey:

  1. They try to connect. txAdmin refuses them and shows a request ID of five characters starting with R, for example R1234, followed by your instructions.
  2. They pass this ID on to the team, by the means you specified.
  3. An administrator opens the Allowlist page of txAdmin ("Whitelist" before version 8.1). The Allowlist Requests table lists the refused players, with their name, their Discord when it is known and the time of their attempt. A search by name or by ID finds the request, which they approve or deny.
  4. The player reconnects: they get in, and stay approved from then on.

With txAdmin's Discord bot enabled, approval can also be done from Discord:

/whitelist request R1234
/whitelist member @Alex
  • /whitelist request approves a request from its ID;
  • /whitelist member approves a member of your Discord in advance, even before their first connection. That day, they will need the Discord app open for txAdmin to recognise them;
  • recent versions accept the same commands under the name /allowlist.

Approval in advance also exists in the panel: under Approved Allowlists Pending Join, the Add Approval button takes an identifier, for example license: or discord: followed by its value.

Three details matter:

  • The right to approve is the players.whitelist permission, to grant in the txAdmin account of each person in charge of recruitment. For the Discord commands, that person's Discord ID must also be filled in on their txAdmin account.
  • Administrators are not exempt: in this mode, approve the team too, yourself included, before turning it on.
  • Removing a player: open their profile in txAdmin. The "ID Allowlisted" line ("ID Whitelisted" before version 8.1) gives the approval date, and the Remove button next to it removes it.
04

Whitelist through Discord: server member or role

For an application-based roleplay server, the Discord Server Roles mode is the one that takes the least daily work: the team hands out a role on Discord, and txAdmin lets in those who hold it. Removing the role removes access, without opening txAdmin.

  1. Create an application and its bot on the Discord developer portal, then invite the bot to your Discord server.
  2. On that portal, enable the Server Members Intent option for the bot: txAdmin needs it to read members and their roles.
  3. In txAdmin, Settings, Discord tab: enable the bot, paste its token into Token and the ID of your Discord server into Guild/Server ID.
  4. Allowlist tab: select Discord Server Roles, then paste into Allowlisted Discord Roles the ID of the accepted role or roles, separated by commas.

To copy an ID, enable developer mode in Discord's settings, then right-click the server or the role. A Discord ID is a long string of digits:

123456789012345678, 234567890123456789

What to know before choosing this mode:

  • the player must launch FiveM with the Discord desktop app open and signed in to the right account. Otherwise the server does not receive their discord: identifier and txAdmin refuses them;
  • if the bot is stopped or its token is no longer valid, the check fails and nobody gets in any more. Keep that token secret and do not reuse it for another bot;
  • the Discord Server Member mode is satisfied with presence on the Discord, which anyone joins with an invite. It makes players go through your announcements and rules, but it selects nobody.

txAdmin's bot does not handle the applications themselves: a form, a ticket channel or a dedicated bot does that. To keep yours running around the clock, see hosting a Discord bot.

05

Whitelist through the framework: ESX, QBCore, Qbox

ESX Legacy. Since version 1.16, ESX ships the esx_whitelist resource, disabled by default. It is configured in esx_whitelist/config/main.lua:

Config.Whitelist = {
    Enabled = true,
    Mode = 'identifier',
    CombinationMode = 'or',
    AllowedIdentifiers = {},
}
  • Mode is 'identifier' (a list of identifiers kept in the database), 'discord' (member of your Discord holding an allowed role) or 'both'. In that last case, CombinationMode decides whether one of the two is enough ('or') or both are needed ('and').
  • The resource depends on oxmysql, esx_lib and es_extended, which must start before it; it creates its own tables. If the database does not respond, start with the oxmysql guide.
  • Discord mode needs a bot: its token is declared in server.cfg, never in the configuration file. In Config.Discord, set Enabled to true and fill in the ID of the Discord server (GuildId) and those of the accepted roles (AllowedRoles).
set discord:botToken "YOUR_DISCORD_BOT_TOKEN"

whitelist add license:0123456789abcdef0123456789abcdef01234567
whitelist remove license:0123456789abcdef0123456789abcdef01234567
whitelist status

The first line goes into server.cfg; the following ones are typed in the server console. In game, /whitelist opens a management panel reserved for administrators. The resource accepts license:, license2: and fivem: identifiers. On an ESX version older than 1.16, use txAdmin's whitelist.

QBCore. Two lines of qb-core/config.lua, written QBConfig.Server… on older versions:

QBCore.Config.Server.Whitelist = true
QBCore.Config.Server.WhitelistPermission = 'admin'

With these values, only players who hold the admin permission get in: it is a "team only" mode, not a list of players. To turn it into a real whitelist, create a separate permission group (here whitelist), add it to QBCore.Config.Server.Permissions, set it as WhitelistPermission, then attach each player to it in server.cfg:

add_principal qbcore.mod qbcore.whitelist
add_principal identifier.license:0123456789abcdef0123456789abcdef01234567 qbcore.whitelist

The first line makes the team inherit this group, the second one registers a player. Try it with an unlisted account before opening. Every addition goes through the file or the console: without tooling around it, txAdmin's whitelist is easier to keep up.

Qbox. The same settings, whitelist and whitelistPermission, are in qbx_core/config/server.lua, and the permission groups in permissions.cfg, where they use the group. prefix (for example group.admin) instead of qbcore..

Job whitelist. On a roleplay server, the word also refers to reserved jobs, such as police or emergency services. On ESX, the jobs table has a whitelisted column: a job set to 1 is no longer offered by the esx_joblisting resource, and is assigned by an administrator with the setjob command. On QBCore, the city hall (qb-cityhall) only offers the jobs listed in Config.AvailableJobs; the others are also given with setjob. To compare the three frameworks, see ESX, QBCore or Qbox.

06

Good practice for a roleplay server, and common refusals

  • Write the journey down before closing the door. Rules to read, form or voice interview, response time: the refused player must find all of this in your instructions, not guess it.
  • Pick the mode according to size. For a small community, Approved License is enough. Once applications come in by the dozen, the Discord role saves copying IDs around.
  • Limit who can approve. One txAdmin account per person, and the players.whitelist permission only for recruiters. txAdmin records every approval in its action log, with the administrator's name.
  • Use Admin-only during updates, instead of shutting the server down: the team tests, players wait. Remember to switch back to the usual mode afterwards.
  • Do not confuse whitelist and sanction. Removing a player from the list closes the door on them; a ban applies to all their known identifiers and leaves a record with its reason. For a cheater, ban.
  • A whitelist does not stop a network attack. It filters players, not traffic: a DDoS attack hits the server before any check.

The refusals that come up most often:

  • The message mentions a missing discord identifier: the Discord desktop app was not open when FiveM was launched. The player opens it, then restarts the game.
  • The player was approved but is still refused: txAdmin's Allowlist page only has an effect in Approved License mode, and a warning says so at the top of the page. Also check that a second whitelist is not running in the framework.
  • The player has the role but is still refused: role ID copied wrong, bot missing from that Discord server, or Server Members Intent option not enabled.
  • The message mentions a missing license identifier: the sv_lan line is enabled in server.cfg. Remove it.
  • Nobody gets in any more after enabling it in QBCore: with the default value, only the admin permission gets through.
07

On a CloudFive server

On our FiveM plans, txAdmin is installed with the server, and its first-setup code is shown in the customer area. The whitelist is then set in txAdmin, as described above. For a whitelist handled by the framework, the server page gives you the rest:

  • The server.cfg is edited from the customer area or from txAdmin: that is where the esx_whitelist bot token or QBCore's add_principal lines go.
  • The files, with their editor, open esx_whitelist/config/main.lua or qb-core/config.lua with no software to install.
  • The live console takes the commands of this guide (whitelist add, whitelist status…) and shows, at startup, whether esx_whitelist was started.
  • Backups, dated, are restored in one click: create one before changing the framework's configuration.

ESX, QBCore or Qbox install in one click from the official recipes: the MariaDB database is created and filled, and server.cfg completed. Access to the server page can be shared with your team, right by right; it is separate from txAdmin administrator accounts.

The servers are in France, on Ryzen 9 9950X, with Anti-DDoS Premium included: it deals with network attacks, which a whitelist does not. Billing is monthly, with no commitment, and support answers in French 7 days a week. If you would rather install everything yourself on a Ryzen VPS, the guide FiveM server on a VPS describes setting up txAdmin; the whitelist is set there in the same way.

08

Frequently asked questions

How do I set up a whitelist on a FiveM server?

In txAdmin, open Settings then the Allowlist tab (Whitelist before version 8.1), select a mode, for example Approved License or Discord Server Roles, fill in the Allowlist Instructions field and save. The check applies from the next connection, whatever the framework.

How do I whitelist a player with txAdmin?

In Approved License mode, the refused player gets a request ID such as R1234. An administrator approves it in txAdmin's Allowlist page, or on Discord with the /whitelist request command followed by the ID. The /whitelist member command approves a Discord member in advance.

How do I make a Discord whitelist on FiveM?

Enable txAdmin's Discord bot (token, Discord server ID, Server Members Intent option), then select the Discord Server Roles mode and enter the IDs of the accepted roles. Players who hold one of these roles get in, provided the Discord desktop app is open.

Why can a whitelisted player not connect?

Most often, their Discord desktop app was closed, the role ID is wrong, or the Allowlist page was filled in while txAdmin is not in Approved License mode. Also check that a second whitelist is not active in the framework.

How do I enable the whitelist on ESX or QBCore?

ESX Legacy ships the esx_whitelist resource since version 1.16: set Enabled to true in esx_whitelist/config/main.lua, then add players with whitelist add. On QBCore, set QBCore.Config.Server.Whitelist to true in qb-core/config.lua; with the default value, only the admin permission can get in.

Is the FiveM whitelist managed from the CloudFive customer area?

txAdmin is installed on all our FiveM plans and its first-setup code is shown in the customer area: the whitelist is set in txAdmin. The server page also gives the live console, the files (server.cfg included) and backups, useful for a whitelist handled by the framework.

Support CloudFive AI

An answer right away, a real team behind it.

CloudFive AI answers you at any hour, in seconds. When it doesn’t know, or as soon as you ask, the team that runs the machines takes over. No offshore call centre.

  • TicketThe team replies in under 2 hours, 7 days a week.
  • CloudFive AIAt any hour, on ia.cloudfive.fr, Discord and in your customer area.
  • DiscordThe team, the AI and other customers, in the help channel.
  • Your data stays with usAI runs on our servers in France; e-mails, IPs and passwords are masked.
A ticket in the customer area: a customer’s question about a Minecraft plugin, and the CloudFive team’s reply
A real ticket in the customer area, answered by the team (demo account; shown in French).
CUSTOMER AREA · APP

Your servers.
At your fingertips.

Restart a server, watch its resources live, pay an invoice or open a ticket — and get an alert when something goes wrong.

  • The status of all your services at a glance
  • Blocked attacks, filtered traffic, monthly peak
  • A notification when a server goes down or an invoice is due

App coming soon · in the meantime, everything works in your browser at manager.cloudfive.fr

The CloudFive app: the list of your services, with their status
The CloudFive app: the home screen, your services’ status, blocked attacks and an invoice to pay