Running one loading screen across several servers
Keep one loading screen resource in Git and pass per-server values at runtime: set convars in each server.cfg (for example set loading_variant "whitelist"), read them on the server with GetConvar and send them with deferrals.handover in playerConnecting, and let the page pick name, colours, rules and music from that. Static differences can live in one JSON config keyed by server.
Communities often run more than one server — main and whitelist, EU and NA, or live and development. Maintaining a separate loading screen for each means fixing the same bug three times. One codebase with per-server settings keeps them consistent and still lets each server show its own name, colours and rules.

#Per-server convars
set loading_variant "whitelist"
set loading_discord "discord.gg/example"Each server sets its own values; the resource files stay identical.
#Passing values with handover data
AddEventHandler('playerConnecting', function(_, _, deferrals)
deferrals.handover({
variant = GetConvar('loading_variant', 'main'),
discord = GetConvar('loading_discord', ''),
})
end)const data = window.nuiHandoverData || {};
const variant = data.variant || 'main';
document.documentElement.dataset.variant = variant;Details and limits: handover data.
#Static content per server
{
"main": { "name": "Night City RP", "accent": "#7c5cff", "music": "main.mp3" },
"whitelist": { "name": "Night City WL", "accent": "#ff5c8a", "music": "wl.mp3" },
"dev": { "name": "Night City DEV", "accent": "#999999", "music": null }
}Include variants.json and assets in the manifest files list so the page can load them — see NUI asset paths.
#Workflow
- Keep the resource in one Git repository.
- Deploy the same version to every server.
- Change only convars per server.
- Test each variant on the dev server with the same convars.
Questions
Can two FiveM servers share one loading screen?
How does a loading screen read server.cfg values?
GetConvar and pass it with deferrals.handover; the page reads window.nuiHandoverData.Where should per-server text live?
Should the dev server use the same loading screen?
Ready to pick a map?
Twelve themes on three base map styles, $8 each, instant download.
Relevant to what you just read
The tool for this
A drag-and-drop loading screen, hosted for you From Free, built in the browser, exported as a drop-in resource.
Look it up while you work
The reference tables this guide leans on, free and without an account.
- The 100 blip colour indexesEvery index SetBlipColour accepts, with the hex value the radar actually draws.
- The same tables as JSON and CSVFree downloads, CORS open, no account and no API key — ship the list inside your own resource instead of scraping a page.