Skip to content
Documentation
Server Essentials4Loading Screen

r_loading Configuration

r_loading config: branding, video, colours, progress, tips, music, social buttons, the Updates, Team, Rules and Keybinds panels, your media files and when the screen closes.

The loading screen is set up in web/build/config.js. Restart the resource and reconnect after changing it. Every section has enabled, set it to false to hide that part.

Branding

serverName: 'R-Scripts',
logo: 'media/images/logo.png',

Video

video: {
  src: 'media/video/background.mp4',
  brightness: 0.35 // 0 = black … 1 = full brightness
},

Lower brightness if the text is hard to read over your clip.

Background image

image: {
  enabled: false, // true shows this picture instead of the video
  src: 'media/images/background.jpg',
  interval: 8, // seconds per picture in a slideshow
  brightness: 0.35
},

Drop your .jpg, .png or .webp in web/build/media/images and point src at it.

Slideshow

Give src a list and the pictures crossfade from one to the next, each with a slow zoom:

image: {
  enabled: true,
  src: [
    'media/images/bg1.jpg',
    'media/images/bg2.jpg',
    'media/images/bg3.jpg'
  ],
  interval: 8,
  brightness: 0.35
},

Colours

colors: {
  primary: '#9a27ea', // one accent colour for the bar, icons and highlights
  button: '#ffffff', // solid buttons (the music play button)
  buttonText: '#000000' // text/icon on those buttons
},

Progress

progress: {
  showTitle: true, // the "Now Loading" heading next to the spinner
  showLog: true, // live feed of what is loading, under the heading
  showPercent: true // big percentage on the right
},

The log names the resource that is loading, like Loading r_store. Resources that only run scripts load before the screen opens, so the log shows the ones with streamed or data files (vehicles, maps, clothing, props).

Tips

tips: {
  enabled: true,
  interval: 7, // seconds each tip stays on screen
  shuffle: true, // random order on every join
  items: [
    'Press F1 to open your phone.',
    'New here? Read the rules from the left menu before you start.',
    'Join our Discord to stay up to date with the server.'
  ]
},

Tips sit above the loading bar and change every interval seconds. One tip stays put, an empty list hides them.

Music

music: {
  enabled: true,
  autoplay: true,
  defaultVolume: 0.2, // 0 … 1
  tracks: [
    { title: 'Heroes Tonight', artist: 'Janji', src: 'media/music/heroes.mp3' }
  ]
},

Add as many tracks as you want. Players can pause with Space. The player's volume, mute and pause are remembered for their next join, defaultVolume only applies until they change it.

Social Buttons

social: {
  enabled: true,
  links: [
    { label: 'Discord', icon: 'discord', url: 'https://discord.gg/rscripts' },
    { label: 'Store', icon: 'store', url: 'https://r-scripts.net' }
  ]
},

icon can be discord, youtube, tiktok, x, store or website.

Side Panels

A panel is hidden when it's enabled: false or its list is empty.

updates: {
  enabled: true,
  items: [
    { date: '16.6.2026', title: 'New era update', body: 'A fresh, modern loading screen by R-Scripts.' }
  ]
},

team: {
  enabled: true,
  members: [
    { name: 'Staff Member', role: 'Administrator' },
    { name: 'Helper', role: 'Moderator' }
  ]
},

rules: {
  enabled: true,
  items: [
    'Be respectful to all players and staff.',
    'No cheating or exploiting.',
    'Use common sense.'
  ]
},

keybinds: {
  enabled: true,
  items: [
    { key: 'F1', action: 'Phone' },
    { key: 'F2', action: 'Inventory' },
    { key: 'B', action: 'Seatbelt' }
  ]
}

key is the label on the keyboard: F1, B, Space, Tab, Enter, Shift and so on. The numpad isn't shown.

Your Media

Replace the files in web/build/media/ with your own, or point config.js at new names.

FileNotes
media/video/background.mp4.mp4 (H.264). Short and loopable, 1080p is plenty.
media/music/*.mp3List each one in music.tracks.
media/images/logo.pngA transparent PNG looks best.

Media has to be inside web/build/media/. YouTube and other streaming links don't work.

When the Screen Closes

This one is in config.lua:

R = {
    CloseEvents = {
        'esx:playerLoaded',
        'QBCore:Client:OnPlayerLoaded'
    },

    Fallback = 90 -- seconds after joining before the screen closes itself, 0 = never
}

The screen closes when one of the CloseEvents fires, when your multicharacter closes it, or after Fallback seconds. On another framework, add its "player loaded" event to CloseEvents, or call this from your spawn code:

exports.r_loading:Close()