← All docsServer experience

Swarm Loading Screen

A branded loading screen with a video or ambient background, music player, keybind, staff and community panels, and per-player playtime, distance and money stats.

QboxQBCoreESXResource: swarm_loadingscreen

New to Swarm scripts? Read Getting started first. It covers Swarm Bridge, install order and the licence.

Requirements

Frameworks: Qbox, QBCore, ESX.

RequirementWhat it's forIncluded
swarm_bridgeTalks to your framework, inventory, target and so on. Included with every Swarm script.Yes
ox_libShared library (callbacks, progress bars, text UI).No
oxmysqlStores player stats. Without it the stats show zero.No
A character select that closes the loading screenSwarm Multichar does this, as does qbx_core's own character select.No

Install

  1. Copy the folders swarm_loadingscreen, swarm_bridge into your server's resources folder. Already have swarm_bridge from another Swarm script? Keep just one copy, the newest.
  2. Add them to server.cfg, dependencies first:
    ensure ox_lib
    ensure oxmysql
    ensure swarm_bridge
    ensure swarm_loadingscreen
  3. Database: import sql/install.sql into your database before starting the script. It isn't created automatically. The stats table isn't created automatically, so import this or stats won't save. The "total owned" stat reads cash and bank from the Qbox / QBCore players table, so it shows 0 on ESX.
  4. Licensed edition only: put your ServerSecret in swarm_bridge/licence/private_config.lua. One secret unlocks every Swarm script you own. How to get it. The Source Code edition has no licence check, so skip this.
  5. Start the server and check the console for errors.

Configuration

Open html/js/config.js (and Swarm Bridge's config.lua) and check these before going live. Anything marked as a placeholder should be moved to a spot that suits your map.

SettingWhat it does
branding.logoSrc / heroLogoSrc / taglineYour logos and tagline. Replace the shipped placeholder images.
background.mode / background.videoSrc'video' with a background video, or 'ambient'.
staffYour staff list for the staff panel. Replace the shipped names.
keybindsThe keybind list shown to players (display only). Match it to your server.
community.discord / website / galleryYour links and screenshots.
music.tracksEmpty by default. Put MP3s in html/assets/music and list them here.
SwarmLoadingscreenConfig.Locale (in config.lua)'auto' follows Swarm Bridge, or force a language code.
SwarmConfig.Branding (in swarm_bridge)Server name and wordmark. Defaults to your sv_hostname.
SwarmConfig.Scripts.LoadingScreen (in swarm_bridge)false turns off the branding relay and stats tracking.

Commands & permissions

This script has no chat commands.

No ACE permissions are needed.

Keys

  • Esc: close info panels

Good to know

  • The music player starts muted; players click it to unmute.
  • The screen stays up until your character select closes it. If players get stuck on it, make sure a character select that closes it is running.

Need help?

Ask in the Swarm Scripts Discord and we'll help you get set up.