ns-loadingscreen â
RDR2-themed RedM loading screen with rotating backgrounds, music player, server rules and rotating tips.
Support / Community: discord.gg/UyyngemnF8
Features â
- Cinematic background slider (configurable images and transition speed)
- Background music with play/pause, volume slider and track info
- Animated server logo with subtitle
- Server rules panel
- Rotating tips at the bottom
- Discord & website social buttons (uses
openUrlnative, falls back towindow.open) - Loading progress bar that listens to FiveM/RedM
loadProgressevents
Folder layout â
ns-loadingscreen/
âââ fxmanifest.lua
âââ client.lua # Shuts the loading screen down on playerSpawned
âââ README.md
âââ html/
âââ index.html
âââ style.css
âââ script.js
âââ config.js # All user-facing configuration
âââ assets/
âââ audio/music.mp3
âââ images/bg*.jpg # rotating background imagesConfiguration â
All editable settings live in html/config.js. Edit it to customize the screen â no other file should need changes.
Backgrounds â
js
backgroundImages: [
'assets/images/bg1.jpg',
'assets/images/bg2.jpg',
// ...
],
backgroundChangeInterval: 8000, // milliseconds between transitionsDrop additional images into html/assets/images/ and reference them with the same relative path.
Music â
js
musicFile: 'assets/audio/music.mp3',
musicStartVolume: 0.2, // 0.0 â 1.0
musicName: "RDR2 Theme Ambient",
musicAuthor: "Red Dead Redemption",Replace the file under html/assets/audio/ and update the metadata above.
Server identity & social links â
js
serverName: "NS",
serverSubtext: "Development",
discordText: "discord.gg/UyyngemnF8",
discordLink: "https://discord.gg/UyyngemnF8",
websiteText: "yourwebsite.com",
websiteLink: "https://yourwebsite.com",Rules and tips â
js
rulesTitle: "Server Rules",
rules: [
"RDM / VDM is strictly prohibited.",
// ...
],
tipsInterval: 6000,
tips: [
"Welcome to the frontier. Build your legacy.",
// ...
],Installation â
- Drop the
ns-loadingscreen/folder into your serverresources/directory. - Add
ensure ns-loadingscreento yourserver.cfg. - Customize
html/config.jsand replace media inhtml/assets/. - Restart the server.
Notes â
- Music auto-play depends on the CEF autoplay policy. In RedM/FiveM CEF this is permissive, so the track starts on its own. If
play()is rejected the icon stays as "play" and the user starts it manually with one click. - The loading screen listens for the standard FiveM/RedM
loadProgresspostMessage to update the progress bar. When opened in a normal browser (nowindow.invokeNative) it falls back to a mock loading animation for previewing the design. loadscreen_manual_shutdown 'yes'means the screen stays up untilclient.luacallsShutdownLoadingScreen()andShutdownLoadingScreenNui()onplayerSpawned.
