CR-Loading Screen Configuration
The CR Loading Screen configuration customizes the loading screen for your FiveM server, creating an engaging and branded experience for players. This guide details the config.js
file, located in the root directory, and explains each setting to help you tailor the UI, media, and information cards effectively.
Basic Configuration
Core settings for the loading screen’s appearance and behavior.
Setting
Type
Description
gameTitle
String
The game or server title displayed in the UI (e.g., "Code Render").
video.format
String
Video format for the background (e.g., webm
, mp4
).
audio.defaultVolume
Number (0–100)
Initial audio volume level.
audio.defaultMuted
Boolean
If true
, audio starts muted.
image
String
Path to the logo or branding image (e.g., web/circle-coderender.png
).
ui.primaryColor
String (Hex)
Primary UI color (e.g., #7EB2FF
).
ui.secondaryColor
String (Hex)
Secondary UI color (e.g., #B4A5FF
).
ui.tertiaryColor
String (Hex)
Tertiary UI color (e.g., #6E8EFF
).
ui.quaternaryColor
String (Hex)
Fourth UI color (e.g., #9B8EFF
).
ui.showControls
Boolean
If true
, displays video playback controls.
loading.showProgressBar
Boolean
If true
, shows the loading progress bar.
loading.showInfoCardsByDefault
Boolean
If true
, displays info cards by default.
Tip: Use vibrant, complementary colors for
ui
settings to enhance visual appeal while maintaining readability.
Card Configuration
The cardInfo
array defines customizable cards to display server information, rules, or links. Each card can be one of three types: Basic, List, or Button.
Card Structure
Card Types
Basic Card (Single Description)
Displays a simple message with an icon and title.
List Card (Bullet Points)
Shows a bulleted list, ideal for rules or jobs.
Button Card (Links)
Provides clickable buttons for external links.
Note: Store SVG icons in the
web/icons/
directory and reference them with relative paths.
Complete Example Configuration
A full config.js
example showcasing all options:
Configuration Tips
Icons: Use high-quality SVG icons for crisp visuals. Place them in web/icons/ and test paths before deployment.
Colors: Choose a cohesive color palette for ui settings. Use tools like Coolors to generate hex codes.
Content: Keep card descriptions and list items concise (under 100 characters each) for better readability.
Buttons: Always include https:// in href URLs to ensure links work correctly.
Video Formats: Prefer webm for faster loading and broader browser compatibility.
Emojis: Add emojis to listItems (e.g., 👮♂️) for visual flair, but use sparingly to avoid clutter.
Warning: Test video and audio settings on multiple devices to ensure compatibility and performance.
Notes
Branding: Use gameTitle and image to reinforce your server’s identity.
User Experience: Set audio.defaultMuted to true to avoid startling players with unexpected sound.
Performance: Optimize video file sizes (under 10MB) to reduce loading times.
Testing: Preview the loading screen in a staging environment to catch UI issues before going live.
Updates: Regularly update cardInfo with new rules, jobs, or links to keep players informed.
Support: For issues or further guidance, contact at discord.
Last updated