Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Install a Loading Screen on a FiveM Server

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Installing a custom loading screen on your FiveM server replaces the default black screen with your own image, video, or interactive HTML page while players connect. This gives your server a professional look and can display rules, Discord links, or server info. You'll need basic file access to your server resources folder and a text editor; no coding experience is required if you use a pre-made loading screen.

What You'll Need

  • Access to your FiveM server files (via FTP, a control panel, or locally if you host on your own PC).
  • A code editor like Notepad++ or VS Code (or just Notepad).
  • A loading screen resource (either one you've downloaded or your own HTML/CSS/JS files).
  • Optional: an image or video file to use as the background.

Step-by-Step

  1. Get a loading screen resource. Download a pre-made one from a trusted source (e.g., GitHub, forums) or create your own. The resource should contain an fxmanifest.lua file and at least an index.html.
  2. Create a folder for the resource. In your server's resources directory, create a new folder, e.g., my-loading-screen. Place all the resource files inside it.
  3. Check the fxmanifest.lua. Open the fxmanifest.lua and ensure it has a line like loadscreen 'index.html' (or loadscreen_cursor 'yes' if needed). If it's missing, add it. Also confirm the client_script isn't required for loading screens—usually it's not.
  4. Add the resource to server.cfg. Open your server.cfg file and add ensure my-loading-screen (or whatever you named the folder). Place it near the top, before other resources that might interfere.
  5. Restart your server. Fully restart the server (not just a resource restart) so the loading screen is applied. When you connect, you should see your custom screen instead of the default.
  6. Test and adjust. If the screen doesn't appear, check the server console for errors. If it appears but looks wrong, adjust file paths in the HTML (e.g., background image path) and restart again.

Common Mistakes

  • Wrong folder name in server.cfg: The name in ensure must exactly match the resource folder name (case-sensitive on Linux).
  • Missing loadscreen line in fxmanifest: Without it, the resource loads as a normal script, not a loading screen.
  • Using absolute file paths: In your HTML, use relative paths (e.g., background.jpg instead of C:/Users/.../background.jpg).
  • Forgetting to include all assets: If your loading screen references a CSS or JS file, make sure those files are in the resource folder and paths are correct.
  • Not restarting the server fully: A resource restart (refresh + restart) may not apply loading screen changes; a full server restart is safer.

Tips

  • Use a lightweight image or video: Large files slow down the loading process. Compress images to under 1MB, and use short, optimized videos.
  • Include useful info: Add your server's Discord link, rules, or a progress bar. Many loading screens have placeholders for these.
  • Test on a local server first: If you have a local test server, try the loading screen there before deploying to your live server.
  • Keep a backup: Before changing anything, back up your original server.cfg and resource files.
  • Use community resources: Many free loading screens come with config files where you can change text and colors without editing HTML.

Troubleshooting

  • Loading screen doesn't appear at all: Check the server console for errors like "Failed to load resource" or "Unknown resource". Verify the folder name in server.cfg matches exactly. Also ensure the fxmanifest.lua has the correct loadscreen line.
  • Black screen after connecting: This often means the HTML file has an error. Open the browser console (F8 in FiveM) to see JavaScript errors. Check that all file paths are correct and that the HTML is valid.
  • Loading screen shows but is blank: The HTML loads but the background image isn't found. Check the image path and make sure the file is in the resource folder. Also verify the image format is supported (e.g., .png, .jpg).
  • Server won't start after adding the resource: Remove the ensure line from server.cfg and try again. If it starts, the resource is faulty—check the fxmanifest for syntax errors.
  • Loading screen works but cursor doesn't: If you need a clickable button, add loadscreen_cursor 'yes' to the fxmanifest.

Frequently Asked Questions

Can I use a YouTube video as my loading screen?

Yes, but it's not recommended. Embedding YouTube videos requires an internet connection and often gets blocked by ad blockers. It's better to host a short video file locally in your resource.

Do I need a web server to host the loading screen?

No. FiveM serves the loading screen files from your resource folder automatically. You don't need an external web server.

Can I have different loading screens for different players?

No, the loading screen is the same for all players. You can, however, use JavaScript to display different content based on the player's language or other factors, but that requires advanced coding.

Why is my loading screen not showing in the server list?

The loading screen only appears when a player actually connects to your server, not in the server list. The server list shows a thumbnail if you set one in your server.cfg (using sv_banner), but that's separate.

Can I use a loading screen from a paid resource?

Yes, paid resources work the same way. Just follow the same steps: place the folder in resources, add the ensure line, and restart.

How do I make my own loading screen?

Create an HTML file with your design, then reference it in the fxmanifest with loadscreen 'yourfile.html'. You can use CSS and JavaScript to add animations, progress bars, and links. Test locally first.