Note: This documentation covers all configuration files you have access to. The loading screen automatically detects your framework (ESX, QBCore, QBox) and displays player data during connection.
1) Overview
Risk Loading Screen is a modern, customizable loading screen for FiveM servers featuring:
๐ต Built-in music player with playlist
๐ฅ Team member showcase (via Discord)
๐ผ๏ธ Photo gallery (from Discord channel)
๐ Live player statistics (name, bank balance, job)
๐จ Fully customizable colors and branding
๐ Built-in rules overlay (F1 key)
โฐ Real-time clock with customizable format
๐ Social media links
๐ฌ Transparent mode with video background support
Copy User IDs again (right-click โ Copy User ID)
Verify bot token is correct
Check user hasn't blocked bot
โ Music doesn't play
Possible causes:
Wrong file paths
Files not uploaded
Browser blocking autoplay
Solution:
Check file paths in songs array
Ensure MP3 files are in html/assets/music/
Click anywhere on screen to allow audio
โ Loading screen won't close
Possible causes:
Framework not detected
Multicharacter script not triggering events
Solution:
Add to server.cfg: set risk_loadscreen_autoclose 1
Check framework is started before loading screen
Verify multicharacter script compatibility
โ Discord bot not working
Possible causes:
Invalid token
Bot not invited to server
Missing intents
Solution:
Generate new token in Discord Developer Portal
Re-invite bot with correct permissions
Enable Server Members Intent and Message Content Intent
โ Rules overlay won't open
Possible causes:
Wrong key configured
Key conflict with other scripts
Solution:
Try different key in rules.key
Test with F2 or F3 instead of F1
11) Best Practices
โ Always test showcase command โ Use /loadscreen to preview changes
โ Optimize music files โ Use compressed MP3 (128-192 kbps) to reduce download time
โ Use square images for covers โ 512x512px recommended
โ Keep gallery channel active โ Post new screenshots regularly
โ Update team members โ Remove staff who left
โ Use high-quality background video โ 1080p 30fps, under 50MB
โ Test on mobile โ Some players connect from phones
โ Keep rules updated โ Review and update rules monthly
โ Backup config files โ Before making major changes
โ Never share bot token โ Keep it private and secure
12) Quick Start Checklist
[ ] Install Discord bot and get token
[ ] Configure DISCORD_TOKEN in editable/server.lua
[ ] Get Discord channel ID for gallery
[ ] Configure GALLERY_CHANNEL in editable/server.lua
[ ] Get Discord User IDs for team members
[ ] Configure TEAM_MEMBERS in editable/server.lua
[ ] Customize serverName and roleplayText in config.js
[ ] Add your music files to html/assets/music/
[ ] Update songs array in config.js
[ ] Configure social links in config.js
[ ] Customize rules entries in config.js
[ ] Change colors in editable/config.css
[ ] Test with /loadscreen command in-game
[ ] Restart server and verify loading screen works
local TEAM_MEMBERS = {
{userId = '123456789012345678', role = 'OWNER', color = 1},
{userId = '234567890123456789', role = 'DEV', color = 1},
{userId = '345678901234567890', role = 'ADMIN', color = 2},
{userId = '456789012345678901', role = 'MODERATOR', color = 3},
}
{userId = '123456789012345678', role = 'OWNER', color = 1},
{userId = '234567890123456789', role = 'DEV', color = 1},
{userId = '345678901234567890', role = 'ADMIN', color = 2},
{userId = '456789012345678901', role = 'MANAGER', color = 2},
{userId = '567890123456789012', role = 'SUPPORT', color = 3},
{userId = '678901234567890123', role = 'MODERATOR', color = 3},
rules: {
key: 'F1', // Key to open rules overlay
title: 'SERVER RULES', // Rules overlay title
subtitle: 'Please read all rules carefully before playing.',
closeLabel: 'CLOSE', // Close button text
entries: [
{
number: '01',
title: 'Respectful Conduct',
text: 'Treat all players with respect. Insults, discrimination and hate speech are strictly forbidden.'
},
{
number: '02',
title: 'No Cheating',
text: 'The use of cheats, hacks or exploits will result in an immediate permanent ban.'
},
// Add more rules here...
]
},
key: 'F2', // Open rules with F2 instead of F1
entries: [
{
number: '01',
title: 'Be Respectful',
text: 'No toxic behavior, racism, or hate speech of any kind.'
},
{
number: '02',
title: 'No Hacking',
text: 'Cheats, exploits, and mods are strictly prohibited.'
},
{
number: '03',
title: 'Roleplay Quality',
text: 'Stay in character. High-quality RP is expected at all times.'
},
{
number: '04',
title: 'No RDM/VDM',
text: 'Random killing or vehicle ramming is not allowed.'
},
],
rules: {
key: 'F1',
title: 'SERVERREGELN',
subtitle: 'Bitte lies alle Regeln sorgfรคltig durch.',
closeLabel: 'SCHLIESSEN',
entries: [
{
number: '01',
title: 'Respektvoller Umgang',
text: 'Behandle alle Spieler mit Respekt. Beleidigungen und Hass sind verboten.'
},
// ...
]
},
serverName: 'SERVER NAME',
roleplayText: 'ROLEPLAY',
serverDescription: 'Welcome to our server! Experience a unique roleplay world...',
timeLabel: 'LOCAL TIME',
balanceTitle: 'BALANCE',
balanceDesc: 'Your current bank balance on the server...',
jobTitle: 'JOB',
jobDesc: 'Your current job on the server...',
loadingTitle: 'LOADING',
loadingDesc: 'Please wait while the server and all resources are being loaded...',
serverName: 'Los Santos RP',
roleplayText: 'SERIOUS RP',
serverDescription: 'The most realistic roleplay experience in FiveM. Join today!',
balanceTitle: 'BANK ACCOUNT',
balanceDesc: 'Your savings in Maze Bank.',
jobTitle: 'OCCUPATION',
jobDesc: 'Your current employment status.',
local DISCORD_TOKEN = ''
local GALLERY_CHANNEL = ''
local TEAM_MEMBERS = {}
tabs: {
team: false, // No team page
gallery: false // No gallery page
},
songs: [
{
src: 'assets/music/song1.mp3',
title: 'Chill Vibes',
artist: 'Artist',
cover: 'assets/music/cover1.png'
}
],
local DISCORD_TOKEN = 'YOUR_BOT_TOKEN_HERE'
local GALLERY_CHANNEL = '1234567890123456789'
local TEAM_MEMBERS = {
{userId = '111111111111111111', role = 'OWNER', color = 1},
{userId = '222222222222222222', role = 'ADMIN', color = 2},
{userId = '333333333333333333', role = 'MOD', color = 3},
}