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
- In server.cfg, set
sets sv_projectName,sets sv_projectDesc,sets tagsandsets locale. - Load a 96×96 PNG with
load_server_icon logo96.png, and pointsets banner_detailandsets banner_connectingat wide banner images. - Swap the framework’s loading screen for your own: a single resource whose manifest carries
loadscreen 'index.html'. - Give it a WebM background, your logo, a progress bar, the rules and a Discord link.
- Post
https://cfx.re/join/<code>everywhere, and give Discord its rules, tickets and roles. - Fix a launch time, brief the staff, and run the launch checklist.
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.
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.
| Key | Effect |
|---|---|
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.
| eventName | Carries |
|---|---|
loadProgress | loadFraction from 0 to 1 |
startInitFunctionOrder | count of init functions |
initFunctionInvoking | idx of the current one |
startDataFileEntries | count of map data files |
performMapLoadFunction | Fires per map file |
onLogLine | message — a status line to show |
window.nuiHandoverData | Your handover values, plus serverAddress |
Server list settings
Set in server.cfg.
| Setting | Example |
|---|---|
sets sv_projectName | "Night City RP" |
sets sv_projectDesc | "Serious roleplay with…" |
sets tags | "roleplay, economy" |
sets locale | "en-US" |
load_server_icon | logo96.png (96×96 PNG) |
sets banner_detail / banner_connecting | "https://…/banner.png" |
sets sv_appearAllowlisted | true |
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.
| Lua | Page |
|---|---|
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() |
Glossary
Every term this handbook uses, in one line each.
- Adaptive Card
- A card defined in JSON, with inputs and buttons, that
deferrals.presentCardshows 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
playerConnectingAPI 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.handovertowindow.nuiHandoverDatain 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.
Questions server owners ask
How do I make a custom loading screen for a FiveM server?
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?
loadscreen, the resource has not been started, or a file is missing from files.How do I add music to a loading screen?
<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?
How do I show a real loading progress bar?
loadProgress message and draw its loadFraction (0–1), without ever letting the displayed value fall.Why are players stuck on the loading screen?
loadscreen_manual_shutdown is on and no script calls ShutdownLoadingScreenNui().What size is the server icon?
load_server_icon.What size should server list banners be?
Why is my server not in the server list?
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?
https://cfx.re/join/<code>.How do I add a queue to my server?
playerConnecting deferrals and admits them by priority as slots free up.Can I monetize my server with PayPal or Stripe directly?
Can I use copyrighted music on my loading screen?
How do I open a link from the loading screen?
loadscreen_cursor and call window.invokeNative('openUrl', 'https://…').How do I grow a FiveM server?
Does a FiveM server need a website?
Official references
Primary sources this handbook is checked against. When in doubt, they win.
Official documentation
- Server commands (listing convars) — sv_projectName, tags, icon
- Server issues — Server list troubleshooting
- Resource manifest — loadscreen, files, ui_page
- Natives reference — NUI, rich presence, text entries
- Featured server list — Promotion options
Platforms
- Cfx.re Portal — Keys and subscriptions
- Adaptive Cards Designer — Design connecting cards
- Discord Developer Portal — Rich presence applications
- Tebex — Authorized monetization partner
Community
- Cfx.re forum — Releases and help
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 HandbookBuild 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.