← 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.
| Requirement | What it's for | Included |
|---|---|---|
swarm_bridge | Talks to your framework, inventory, target and so on. Included with every Swarm script. | Yes |
ox_lib | Shared library (callbacks, progress bars, text UI). | No |
oxmysql | Stores player stats. Without it the stats show zero. | No |
| A character select that closes the loading screen | Swarm Multichar does this, as does qbx_core's own character select. | No |
Install
- Copy the folders
swarm_loadingscreen,swarm_bridgeinto your server'sresourcesfolder. Already haveswarm_bridgefrom another Swarm script? Keep just one copy, the newest. - Add them to
server.cfg, dependencies first:ensure ox_lib ensure oxmysql ensure swarm_bridge ensure swarm_loadingscreen - Database: import
sql/install.sqlinto 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 / QBCoreplayerstable, so it shows 0 on ESX. - 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. - 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.
| Setting | What it does |
|---|---|
branding.logoSrc / heroLogoSrc / tagline | Your logos and tagline. Replace the shipped placeholder images. |
background.mode / background.videoSrc | 'video' with a background video, or 'ambient'. |
staff | Your staff list for the staff panel. Replace the shipped names. |
keybinds | The keybind list shown to players (display only). Match it to your server. |
community.discord / website / gallery | Your links and screenshots. |
music.tracks | Empty 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.
Swarm Scripts
Nyxia Development