☰ All guides
Standalone

6-loadingscreen

Loading screen with video or image background, music player, team, gallery, key overview and a snake game. Everything is set in one JSON file.

Resource folder

six_loadingscreen

01Requirements

None. Only one loading screen can be active: remove your old one.

02Installation

  1. 01Sign in to the Cfx Portal with the account you bought with and download the script under Granted Assets.
  2. 02Unzip the download and move the folder six_loadingscreen into the resources folder of your server. Keep the folder name and upload every file, including the hidden .fxap.
  3. 03Remove the ensure line of your old loading screen from the server.cfg.
  4. 04Add ensure six_loadingscreen to your server.cfg.
  5. 05Edit config.json and replace the files in html/assets (see below).
  6. 06Restart the server (or run refresh and then ensure with the folder name in the server console).

03Your own files

All paths in the config are relative to the folder html.

Folder

html/assets/images
Logo, background image, team avatars (team/) and gallery pictures (gallery/).
html/assets/video
Background video. Use .webm and keep it small, players download it on every join.
html/assets/music
Music as .mp3.
html/assets/styles/style.css
Colours, see “Colours”.

04Configuration

config.json has three parts: general, appearance and features.

general

serverName
Name of your server.
welcomeTitle / serverTitle / serverSubtitle
The three lines of the welcome headline.
serverDescription
Short text below the headline.
serverLogo
Path to your logo.
maxPlayers
Slot count shown on the screen.
joinText
Text of the joining box.
brandingSection
Small title block in the top left corner: enabled, title, subtitle.

appearance.background

backgroundType
videoOnly, imageOnly, imageAndVideo or blank.
videoSource / imageSource
Paths to video and image.
enableBackgroundToggle
With imageAndVideo: shows the button that lets players switch between image and video.

features

mainPage
Start page: showServerInfo, showFeatureBoxes, hideOnTabSwitch and the featureBoxes (each with title, description, icon = check or users, highlight).
socialMedia
Buttons in links. platform is one of discord, twitter, facebook, instagram, youtube, tiktok, twitch, github, website.
musicPlayer
autoplay, volume (0 to 100), showInAllTabs and the playlist with title and file.
loadingBar
The bar and the loadingMessages that rotate while loading.
snakeGame
gridSize, speed (lower is faster), snakeColor, foodColor.
teamSection
teamMembers with name, role, description, avatar.
gallerySection
autoSlide, autoSlideInterval in milliseconds and images with url, optional thumbnail and title.
keyboardSection
highlightedKeys: key on the left, what it does on your server on the right.

Every feature has enabled. Set it to false and the tab disappears.

›config.jsonComplete file · 197 lines
config.json
{
  "general": {
    "serverName": "SIX ROLEPLAY",
    "serverDescription": "Experience a unique roleplay adventure in our meticulously crafted city. Join our community and become part of a living, breathing world with endless possibilities.",
    "serverLogo": "assets/images/server_logo.png",
    "maxPlayers": 64,
    "joinText": "JOINING SERVER",
    "welcomeTitle": "WELCOME TO",
    "serverTitle": "SIX-SERVICES",
    "serverSubtitle": "ROLEPLAY",
    "brandingSection": {
      "enabled": true,
      "title": "SIX-LOADINGSCREEN",
      "subtitle": "High Performance | Premium Experience"
    }
  },
  "appearance": {
    "background": {
      "backgroundType": "imageAndVideo",
      "videoSource": "assets/video/background.webm",
      "imageSource": "assets/images/background.jpg",
      "enableBackgroundToggle": true
    }
  },
  "features": {
    "mainPage": {
      "enabled": true,
      "showServerInfo": true,
      "showFeatureBoxes": true,
      "hideOnTabSwitch": true,
      "featureBoxes": [
        {
          "title": "CUSTOM FRAMEWORK",
          "icon": "check",
          "description": "Our server features a custom-built framework designed specifically for an immersive roleplaying experience with unique jobs, activities, and gameplay elements.",
          "highlight": true
        },
        {
          "title": "ACTIVE COMMUNITY",
          "icon": "users",
          "description": "Join our friendly and active community with regular events, updates, and a helpful staff team dedicated to creating the best roleplay environment.",
          "highlight": false
        }
      ]
    },
    "socialMedia": {
      "enabled": true,
      "links": [
        {
          "platform": "discord",
          "url": "https://discord.gg/yourdiscord"
        },
        {
          "platform": "instagram",
          "url": "https://instagram.com/yourserver"
        },
        {
          "platform": "twitter",
          "url": "https://twitter.com/yourserver"
        },
        {
          "platform": "youtube",
          "url": "https://youtube.com/c/yourserver"
        },
        {
          "platform": "tiktok",
          "url": "https://tiktok.com/@yourserver"
        },
        {
          "platform": "website",
          "url": "https://yourserver.com"
        }
      ]
    },
    "musicPlayer": {
      "enabled": true,
      "autoplay": true,
      "volume": 30,
      "showInAllTabs": true,
      "playlist": [
        {
          "title": "Hallo",
          "file": "assets/music/background_music.mp3"
        }
      ]
    },
    "loadingBar": {
      "enabled": true,
      "loadingMessages": [
        "Loading server resources...",
        "Initializing game world...",
        "Loading map data...",
        "Synchronizing with server...",
        "Preparing character data...",
        "Almost there..."
      ]
    },
    "snakeGame": {
      "enabled": true,
      "sectionTitle": "Snake Game",
      "sectionSubtitle": "Play while you wait!",
      "gridSize": 20,
      "speed": 150,
      "snakeColor": "#07a4dc",
      "foodColor": "#ff4649"
    },
    "teamSection": {
      "enabled": true,
      "sectionTitle": "OUR TEAM",
      "sectionSubtitle": "Meet the people behind SIX ROLEPLAY",
      "teamMembers": [
        {
          "name": "Alex_Developer",
          "role": "Founder & Lead Developer",
          "description": "Creating innovative gameplay mechanics and maintaining server performance.",
          "avatar": "assets/images/team/test_profilpic.png"
        },
        {
          "name": "Sarah_Admin",
          "role": "Community Manager",
          "description": "Ensuring everyone has a positive experience on our server.",
          "avatar": "assets/images/team/test_profilpic.png"
        },
        {
          "name": "Mike_Scripter",
          "role": "Script Developer",
          "description": "Creating unique jobs and activities for our roleplay server.",
          "avatar": "assets/images/team/test_profilpic.png"
        },
        {
          "name": "Emma_Support",
          "role": "Support Team Lead",
          "description": "Helping new players get started and solving any issues.",
          "avatar": "assets/images/team/test_profilpic.png"
        },
        {
          "name": "John_Designer",
          "role": "UI/UX Designer",
          "description": "Creating beautiful and intuitive user interfaces for our server.",
          "avatar": "assets/images/team/test_profilpic.png"
        },
        {
          "name": "Lisa_Events",
          "role": "Events Manager",
          "description": "Organizing fun and engaging community events for all players.",
          "avatar": "assets/images/team/test_profilpic.png"
        }
      ]
    },
    "gallerySection": {
      "enabled": true,
      "sectionTitle": "Server Gallery",
      "sectionSubtitle": "Preview our beautiful world",
      "autoSlide": true,
      "autoSlideInterval": 5000,
      "images": [
        {
          "url": "assets/images/gallery/test.jpg"
        },
        {
          "url": "assets/images/gallery/test2.jpg"
        },
        {
          "url": "assets/images/gallery/test3.jpg"
        },
        {
          "url": "assets/images/gallery/test4.jpg"
        },
        {
          "url": "assets/images/gallery/test5.jpg"
        }
      ]
    },
    "keyboardSection": {
      "enabled": true,
      "sectionTitle": "Keyboard Controls",
      "sectionSubtitle": "Learn the essential controls for SIX ROLEPLAY",
      "highlightedKeys": {
        "f1": "Toggle player HUD",
        "f3": "Open emote menu",
        "f5": "Character customization",
        "5": "Show ID card",
        "e": "Interact with objects and NPCs",
        "i": "Open inventory",
        "g": "Gang menu",
        "h": "Hands up",
        "l": "Lock/unlock vehicle",
        "x": "Hands up/surrender",
        "v": "Voice range",
        "b": "Point finger",
        "m": "Open map",
        "space": "Jump / Skip dialog",
        "esc": "Exit current menu or action"
      }
    }
  }
}

05Colours

The colours are CSS variables at the top of html/assets/styles/style.css. Change them once and the whole screen follows.

css
:root {
  --primary-color: #07a4dc;      /* main accent */
  --primary-color-dark: #045876;
  --secondary-color: #ff4649;    /* second accent */
  --text-color: #ffffff;
  --bg-color-dark: #000000;
  --bg-overlay: rgba(0, 0, 0, 0.5); /* darkening over the background */
}

06Troubleshooting

The screen stays black or shows the default FiveM loading screen.

Almost always a syntax error in config.json: a missing or extra comma, or a missing quote. Paste the file into a JSON validator. Also make sure no second loading screen is started.

A picture, the video or the music is missing.

The path is wrong. Paths are relative to html and case-sensitive on Linux servers: Logo.PNG is not logo.png.

The music does not start by itself.

Check autoplay and volume.

07Still stuck?

Open a ticket on our Discord. Send the script name, your framework and version, and the full error from the server console (F8 for client errors). That saves a round of questions.