Santa & Christmas Edition36 maps, limited runlimited runShop the drop
Chapter 03 of 8The Loading Screens Handbook for FiveM

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.

fxmanifest.lua
fx_version 'cerulean'
game 'gta5'

loadscreen 'index.html'
loadscreen_cursor 'yes'
loadscreen_manual_shutdown 'yes'

files {
    'index.html',
    'style.css',
    'script.js',
    'assets/*',
}
SettingEffect
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-loadingscreen or esx_loadingscreen first and then ensure your 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.

SymptomCauseFix
Default screen still showsAnother resource declares loadscreenStop the framework’s loading screen
Blank or white screenA file is missing from files, or a path is wrongList every file; use relative paths
Stuck after loadingloadscreen_manual_shutdown without a shutdown callCall ShutdownLoadingScreenNui() from your spawn script, with a fallback
Music does not playWrong path, unsupported format, or volume 0MP3, listed in files, set audio.volume
Video does not playH.264 or a huge fileWebM, 10–30 MB, or a CDN
Changes do not showClient cacheRestart the resource; players clear FiveM cache
Fonts fall backFont file not in files or wrong pathWOFF2, listed, relative @font-face URL
Links do nothingLoading screen cannot navigatewindow.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.

The Loading Screens Handbook for FiveM

This chapter is one of 8. The handbook also carries the manifest, message, server list and NUI cheat sheets, a glossary and the official references every chapter is checked against.

Open the handbook