TutorialJune 22, 2026Updated October 31, 20265 min read

Install a GMod Loading Screen with sv_loadingurl

Hook your loading screen up to your Garry's Mod server with sv_loadingurl: where to put the line, server.cfg or gmodserver.cfg, how to check it, what to fix.

By Lumescreen Team

You have a loading screen URL, generated with Lumescreen or hosted yourself, and you want your Garry's Mod server to use it. It takes one line of configuration. This guide shows where to put it, how to check it, and what to fix when the default screen keeps showing up.

If you haven't created your screen yet, start with our create a GMod loading screen tutorial. Once you've got the URL, come back here for the server side.

What you'll need

  • Server access: the configuration file (server.cfg, or gmodserver.cfg on LinuxGSM) or the server console (RCON or direct access).
  • A public HTTPS URL: the address of your loading screen, reachable from the internet (not a local address like localhost). With Lumescreen, it's a URL under /ls/your-server.
  • A server with more than one player slot: GMod never opens a custom loading screen in a single-player game.

The key command: sv_loadingurl

Everything goes through one server variable, sv_loadingurl. It tells joining clients which web page to show while they download your files and addons. Put the URL in double quotes:

Command format
sv_loadingurl "https://example.com/ls/my-server?steamid=%s&mapname=%m"

You can set it in two places:

  • In the configuration file (recommended): server.cfg, or gmodserver.cfg on LinuxGSM installs, where it lives by default (LinuxGSM documentation). The value is applied every time the server starts.
  • In the server console: handy for a quick test, but the value is lost at the next restart unless it's also in the file.

Step-by-step installation

  1. Get your loading screen URL and copy it in full, including the https://.
  2. Open the configuration file: garrysmod/cfg/server.cfg, or gmodserver.cfg if your server runs on LinuxGSM. Use a text editor or your host's file manager.
  3. Add the sv_loadingurl line with your URL in quotes, on a line of its own.
  4. Save the file.
  5. Restart the server so the new config is applied. A map change (changelevel) or an exec server.cfg via RCON may also work, depending on your host.
  6. Test by joining the server from a GMod client: your screen should appear during loading.

An example server.cfg with a few common settings around the loading screen line:

Excerpt from garrysmod/cfg/server.cfg
hostname "My GMod Server | DarkRP"
sv_lan 0
rcon_password "your_rcon_password"

// Lumescreen loading screen
sv_loadingurl "https://example.com/ls/my-server?steamid=%s&mapname=%m"

sv_downloadurl "https://fastdl.example.com/gmod"
net_maxfilesize 64

Checking that it works

Join the server from a GMod client. If you see your screen while the files download, you're done. If the default Garry's Mod loading screen shows up instead, check these points in order:

  • Type sv_loadingurl in the server console: it prints the value the server uses. If it's empty or old, the server didn't read your file.
  • Does the URL start with https:// (or http://)? GMod only opens URLs that start with http or asset://; since April 2021, anything else (a data: URL, for example) is ignored.
  • Are the quotation marks around the URL?
  • Does the URL open in a normal browser, from another network?
  • Is the client you test with allowed to show custom loading screens? The setting cl_enable_loadingurl (a checkbox in GMod's multiplayer options) must be on.

Troubleshooting common cases

  • Non-public or localhost URL: players load the page from their own machines. A local address or an unexposed port is never reachable. Use a public URL.
  • HTTP instead of HTTPS: use https://, and serve images and audio over https too, or they are blocked as mixed content.
  • Wrong configuration file: edit garrysmod/cfg/server.cfg (or gmodserver.cfg on LinuxGSM), not an example file or another profile.
  • Panel settings that overwrite your file: if your line disappears after a restart, your host may rebuild the configuration file from panel settings. Look for a loading URL or startup parameter field in the panel, or ask support.
  • Custom loading screens turned off on the client: a player who unticked them (cl_enable_loadingurl 0) always gets the default screen. Test from a second account.
  • Single-player test: GMod only opens the URL on a server with more than one slot. Join a dedicated server as a client.
  • Cached copy: if you host the page yourself, serve it with Cache-Control: no-store so players don't get an old version. Lumescreen pages already do.
  • Page too heavy: GMod skips the page's JavaScript functions while the page is still loading, so a heavy page can miss the first download events. Keep images compressed. Lumescreen converts uploaded images to WebP and audio to MP3.

What's next?

Once the screen is hooked up, you can customize your loading screen (colors, music, staff, rules) so it fits your community, or build a different screen per gamemode if you run several DarkRP, Sandbox or other servers.

In short: one line in server.cfg, a restart, then a test from a client. If you want a ready-to-paste URL with nothing to host, take a look at our plans.

Read next