How a loading screen resource works, and what breaks it
In short
A loading screen is a resource whose manifest declares a loadscreen page. The page is shown while the game loads the server’s content and closes when loading ends, or when a script closes it.
fx_version 'cerulean'
game 'gta5'
loadscreen 'index.html'
loadscreen_cursor 'yes'
loadscreen_manual_shutdown 'yes'
files {
'index.html',
'style.css',
'script.js',
'assets/*',
}| Setting | Effect |
|---|---|
loadscreen 'index.html' | The page to show; only one running resource may declare it |
loadscreen_cursor 'yes' | Shows the mouse so buttons work |
loadscreen_manual_shutdown 'yes' | Stays up until a client script calls ShutdownLoadingScreenNui() |
files { … } | Every file the page uses must be listed |
- To replace a framework screen, stop
qb-loadingscreenoresx_loadingscreenfirst and thenensureyour own. The per-framework notes are under QBCore, ESX, Qbox and vRP. - Under manual shutdown it is the multicharacter or spawn script that closes the screen. Keep a fallback so that nobody is left stuck behind it.
- A link cannot navigate the screen itself. Open it in the player’s browser with
window.invokeNative('openUrl', url).
Nearly every loading screen fault is one of the eight below, and most trace back to the four manifest lines above.
| Symptom | Cause | Fix |
|---|---|---|
| Default screen still shows | Another resource declares loadscreen | Stop the framework’s loading screen |
| Blank or white screen | A file is missing from files, or a path is wrong | List every file; use relative paths |
| Stuck after loading | loadscreen_manual_shutdown without a shutdown call | Call ShutdownLoadingScreenNui() from your spawn script, with a fallback |
| Music does not play | Wrong path, unsupported format, or volume 0 | MP3, listed in files, set audio.volume |
| Video does not play | H.264 or a huge file | WebM, 10–30 MB, or a CDN |
| Changes do not show | Client cache | Restart the resource; players clear FiveM cache |
| Fonts fall back | Font file not in files or wrong path | WOFF2, listed, relative @font-face URL |
| Links do nothing | Loading screen cannot navigate | window.invokeNative('openUrl', url) |
For a screen made in the FAM Tools builder, the install steps and its own list of faults are in the install notes.
Go deeper:fxmanifest.lua loadscreen, explained properly →Replacing your framework’s default loading screen →Controlling when your loading screen closes (loadscreen_manual_shutdown) →Interactive loading screens: cursor, buttons and opening links →Your FiveM loading screen isn’t showing →Players are stuck on the loading screen →The music on your loading screen isn’t playing →Your changes aren’t showing up in game →