Santa & Christmas Edition36 maps, limited runlimited runShop the drop
Free handbook

The Loading Screens Handbook for FiveM
server list to first minute.

What a player meets between finding a server and standing in it: the server list entry, the connecting stage with its cards and queues, a loading screen that loads quickly and carries the brand, and the NUI that takes over after it. The later chapters cover Discord, video, the monetization rules and keeping the players a launch brings in. Each chapter is its own page with working config and code, and links to a detailed guide.

  • 8chapters
  • 25 minreading time
  • 25settings & messages
  • 24glossary terms

Who this handbook is for

  • Owners preparing a launch or a relaunch
  • Developers who build loading screens and NUI
  • Community managers who run Discord, rules and staff
  • Anyone who wants new players to join and come back

Updated November 10, 2026 · checked against the official Cfx.re documentation.

The front door, in one afternoon

  1. In server.cfg, set sets sv_projectName, sets sv_projectDesc, sets tags and sets locale.
  2. Load a 96×96 PNG with load_server_icon logo96.png, and point sets banner_detail and sets banner_connecting at wide banner images.
  3. Swap the framework’s loading screen for your own: a single resource whose manifest carries loadscreen 'index.html'.
  4. Give it a WebM background, your logo, a progress bar, the rules and a Discord link.
  5. Post https://cfx.re/join/<code> everywhere, and give Discord its rules, tickets and roles.
  6. Fix a launch time, brief the staff, and run the launch checklist.
8 chapters

The chapters

Each one is its own page with its own config and code. Read them in order, or open the one that matches the problem in front of you.

Chapter 01From server list to first minute: name, tags, icon and bannersThe convars behind a server list entry: sv_projectName, sv_projectDesc, tags, locale, the 96×96 icon and both banners, with the sizes that are safe to use.Chapter 02Connecting: deferrals, adaptive cards, queues, whitelists and join linksHow playerConnecting deferrals hold a player, show an Adaptive Card, check a whitelist or run a queue, plus the three forms of a cfx.re/join link.Chapter 03How a loading screen resource works, and what breaks itThe fxmanifest keys behind a loading screen: loadscreen, loadscreen_cursor, loadscreen_manual_shutdown and files, and the eight faults that explain most bugs.Chapter 04Building the loading screen in HTML or ReactA working loading screen in plain HTML and JavaScript: a progress bar driven by loadProgress, status lines from onLogLine, handover data, and the React setup.Chapter 05Video, music, fonts and the design of the screenFormats the in-game browser plays reliably: WebM video, MP3 music, WOFF2 fonts and WebP images, then what to show a waiting player and how to keep it legible.Chapter 06NUI: messages, callbacks, focus and the limits of the in-game browserWhat follows the loading screen: SendNUIMessage, RegisterNuiCallback and SetNuiFocus, the gaps in the in-game Chromium, and how to debug and keep a HUD light.Chapter 07Branding, the pause menu, rich presence and DiscordOne logo, one accent color and one or two fonts across the server list, loading screen, pause menu and Discord, then the channels, rules and staff ladder.Chapter 08Website, video, monetization rules, retention and launch weekWhat brings players in and keeps them: a small website, a trailer and short clips, monetization through Tebex, the three growth loops and the launch week.
Reference

Cheat sheets

The manifest keys, messages, convars and NUI calls worth keeping open in a tab.

Loading screen manifest keys

Set in the fxmanifest.lua of the loading screen resource.

KeyEffect
loadscreen 'index.html'Declares the page
loadscreen_cursor 'yes'Shows the mouse
loadscreen_manual_shutdown 'yes'Waits for ShutdownLoadingScreenNui()
files { … }Every file the page loads

Loading screen messages

Each arrives through window.addEventListener('message', …) and is identified by e.data.eventName.

eventNameCarries
loadProgressloadFraction from 0 to 1
startInitFunctionOrdercount of init functions
initFunctionInvokingidx of the current one
startDataFileEntriescount of map data files
performMapLoadFunctionFires per map file
onLogLinemessage — a status line to show
window.nuiHandoverDataYour handover values, plus serverAddress

Server list settings

Set in server.cfg.

SettingExample
sets sv_projectName"Night City RP"
sets sv_projectDesc"Serious roleplay with…"
sets tags"roleplay, economy"
sets locale"en-US"
load_server_iconlogo96.png (96×96 PNG)
sets banner_detail / banner_connecting"https://…/banner.png"
sets sv_appearAllowlistedtrue
sets sv_allowlistInstructions"Apply on discord.gg/…"

NUI at a glance

The Lua call on the left, its counterpart in the page on the right.

LuaPage
SendNUIMessage(table)message event, e.data
RegisterNuiCallback(name, fn)fetch('https://<resource>/<name>')
SetNuiFocus(focus, cursor)—
SetNuiFocusKeepInput(true)Walk while the UI is open
—window.invokeNative('openUrl', url)
—GetParentResourceName()
Reference

Glossary

Every term this handbook uses, in one line each.

Adaptive Card
A card defined in JSON, with inputs and buttons, that deferrals.presentCard shows during connecting.
Banner
A wide image for the server page (banner_detail) or the connecting stage (banner_connecting).
CEF
The embedded Chromium browser that renders NUI and loading screens in FiveM.
cfx.re/join
A short link that opens the client and connects it to a listed server.
Deferrals
The playerConnecting API used to hold, update, check and admit a player.
Focus
Whether NUI receives the keyboard and mouse; set with SetNuiFocus.
Handover data
Values that travel from deferrals.handover to window.nuiHandoverData in the loading screen.
Locale
The main language of the server as shown in the list, e.g. en-US.
loadProgress
The loading screen message that carries loadFraction, from 0 to 1.
Loading screen
The page displayed while the game loads the server’s content.
Manual shutdown
Holding the loading screen open until ShutdownLoadingScreenNui() is called.
NUI
The in-game browser layer behind HUDs, menus and loading screens.
NUI callback
A Lua handler that the page reaches with fetch('https://<resource>/<name>').
PLA
The Cfx.re Platform License Agreement, the source of the monetization rules.
Queue
A resource that keeps players in deferrals until a slot opens.
Rich presence
The status and buttons displayed on a player’s Discord profile.
Safe zone
The part of the screen HUD elements must stay within, read from GetSafeZoneSize().
sv_projectName
The required community name displayed in the server list.
sv_projectDesc
The required one-sentence description displayed in the server list.
Tags
Comma-separated keywords that players use to filter the server list.
Tebex
The authorized monetization partner of Cfx.re.
WebM
The video format to use in the in-game browser (VP9 or VP8).
Whitelist
Admitting approved players only, usually by checking a Discord role at connect.
WOFF2
The compact web font format to ship inside a loading screen.
Reference

Questions server owners ask

How do I make a custom loading screen for a FiveM server?
Make a resource whose fxmanifest.lua declares loadscreen 'index.html' and lists every file, write the page in HTML, CSS and JavaScript, stop the framework’s loading screen and ensure your own. The steps are in the manifest and building the screen.
Why does my loading screen not show?
Either another resource still declares loadscreen, the resource has not been started, or a file is missing from files.
How do I add music to a loading screen?
Put an <audio autoplay loop> element on the page with an MP3 that is listed in files, set audio.volume from JavaScript and give the player a mute button.
What video format should a loading screen use?
WebM (VP9 or VP8) at 1920×1080 and 24–30 fps, ideally 10–30 MB, or served from a CDN.
How do I show a real loading progress bar?
Listen for the loadProgress message and draw its loadFraction (0–1), without ever letting the displayed value fall.
Why are players stuck on the loading screen?
In most cases loadscreen_manual_shutdown is on and no script calls ShutdownLoadingScreenNui().
What size is the server icon?
96×96 pixels, in PNG, loaded with load_server_icon.
What size should server list banners be?
No official size exists. Wide strips such as 1865×108 or 1920×200 are common, with the text kept in the middle.
Why is my server not in the server list?
A missing sv_projectName or sv_projectDesc, closed ports, an active sv_master1, or fewer than 8 minutes since the start. The checks are in ports, firewall and connecting.
How do I get a cfx.re/join link?
Open the server in the server browser. The code at the end of its page URL goes into https://cfx.re/join/<code>.
How do I add a queue to my server?
Run a queue resource that holds players in playerConnecting deferrals and admits them by priority as slots free up.
Can I monetize my server with PayPal or Stripe directly?
No. Tebex is Cfx.re’s authorized monetization partner, and monetizing a server through other platforms is prohibited under the PLA.
Can I use copyrighted music on my loading screen?
Not without a license. Use royalty-free music whose license covers it, a commissioned track, or your own.
How do I open a link from the loading screen?
Turn on loadscreen_cursor and call window.invokeNative('openUrl', 'https://…').
How do I grow a FiveM server?
Fix the first experience, post short clips of real moments, use Discord as the hub, keep events and updates coming, and measure who returns after a day and after a week.
Does a FiveM server need a website?
A small one helps: a trailer, a Play button, the rules, applications, and links to the store and Discord, with basic SEO.
Reference

Official references

Primary sources this handbook is checked against. When in doubt, they win.

Official documentation

Platforms

Community

The server side of the same launch

Hosting, txAdmin, server.cfg, ports, OneSync, security, backups and the launch checklist are in the Server Handbook for FiveM.

Open the Server Handbook

Build the screen without writing the page

20 templates and 50 widgets in a browser builder that exports the resource folder and its fxmanifest. Starting is free.