Skip to Content

Config

Everything in config.lua you can change to make the loading screen your own.

The whole config sits in a single config.lua file at the root of the resource. It’s escrow-ignored, so you can edit it freely without breaking anything.

General settings

These control the overall feel of the screen. Theme color, background, music volume, and the body text.

config.lua
Config.ColorTheme = '#3767E5' Config.DiscordServer = 'https://discord.gg/2e4NGxp2fm' Config.EnableDecorLines = true Config.Background = 'https://r2.fivemanage.com/.../background.mp4' Config.InitialVolume = 20 Config.Description = 'An event in which all the bands in our state participate...'
KeyTypeDefaultWhat it does
ColorThemestring'#3767E5'Primary accent color. Any CSS hex value.
DiscordServerstringinvite URLDiscord invite link. The screen pulls the server name and live member count from this invite and uses it as the join button.
EnableDecorLinesbooleantrueToggles the decorative line accents in the UI.
BackgroundstringURL or pathBackground media. Either a CDN URL or a direct path to a local file inside the resource. Accepts .mp4, .webm, .png, .jpg.
InitialVolumenumber20Starting music volume. Range 0 to 100.
Descriptionstringsample textBody text shown next to the logo. Keep it short.

Choosing a background

You can use a hosted file or a local one:

  • Hosted. Fivemanage, Catbox, Cloudflare R2, or any CDN that gives you a direct .mp4 / .webm / .png / .jpg URL.
  • Local. Drop the file into web/build/backgrounds/ inside the resource, then reference it as './backgrounds/your-file.mp4'.

Videos look best at 1080p or higher. Try to keep them under 30 MB so players on slower connections aren’t stuck waiting.

The logo shown on the main panel.

config.lua
Config.Logo = { url = './images/nexus.png', width = 82, height = nil, }
KeyTypeWhat it does
urlstringLocal path (place file in web/build/images/) or a direct URL.
widthnumberWidth in pixels.
heightnumber or nilHeight in pixels. Leave nil to auto-scale based on width.

Music

Each entry plays in order. Players can skip or pause from the UI.

config.lua
Config.Musics = { { title = 'FE!N FE!N', artist = 'Travis Scott', url = 'https://r2.fivemanage.com/.../fein.webm', cover = 'https://r2.fivemanage.com/.../fein_thump.jpg', }, { title = 'Big dawgs', artist = 'Hanumankind', url = 'https://r2.fivemanage.com/.../big_dawgs.webm', cover = 'https://r2.fivemanage.com/.../big_dawgs.jpg', }, }
KeyTypeWhat it does
titlestringTrack title shown in the player.
artiststringArtist name shown under the title.
urlstringDirect audio file URL.
coverstring (optional)Cover image URL.

Supported audio formats: .mp3, .wav, .ogg, .m4a, .aac, .flac, .opus.

You can also drop audio files into web/public/music/ and reference them with a local path.

Buttons shown on the screen for socials, your website, or anywhere else you want to send players.

config.lua
Config.LinkButtons = { { name = 'Instagram', url = 'https://www.instagram.com/nexusstudios/', logo = './images/icons/insta.svg', IsBig = false, }, { name = 'WEBSITE', url = 'https://nexusstudios.net/', logo = './images/nexus.png', IsBig = true, }, }
KeyTypeWhat it does
namestringLabel shown on the button.
urlstringWhere the button takes the player.
logostringIcon path. Local file or URL. SVG and PNG both work.
IsBigbooleantrue to render a larger button. Good for your main website.

Team

The team showcase block. Add as many members as you like.

config.lua
Config.Team = { { name = 'H Y D R A', logo = 'https://.../avatar.webp', role = 'DIRECTOR', Identifier = 'discord:945516946164690954', }, { name = 'Swanky', logo = 'https://.../avatar.webp', role = 'DIRECTOR', Identifier = 'discord:696777167685812255', }, }
KeyTypeWhat it does
namestringDisplay name.
logostringAvatar image URL.
rolestringRole label like DIRECTOR, DEV, MOD.
IdentifierstringDiscord identifier in the format discord:<id>.

If you have a long team list, the panel scrolls automatically.

Need help?

Stuck on something or want to request a feature? Hop into our Discord  and we’ll help you out.

Last updated on