Music player
The loading screen ships with a full audio player (play/pause, previous/next, shuffle, loop, volume, clickable seek bar) fed by the music list in config/config.js.
Configuration
js
music: [
{
src: "/config/song/Cinematic.mp3",
trackTitle: "Cinematic",
duration: "1:49",
},
{
src: "/config/song/Ya_Kuba_Karma.mp3",
trackTitle: "Ya Kuba - Karma",
duration: "2:15",
},
{
src: "/config/song/French_Montana_-_Unforgettable.mp3",
trackTitle: "French Montana - Unforgettable ft. Swae Lee",
duration: "4:47",
},
],Each track is an object:
| Field | Description |
|---|---|
src | Path to the audio file in config/song/ |
trackTitle | Title shown in the player |
duration | Duration in M:SS format (display only) |
Add a track
- Drop your
.mp3file intoconfig/song/. - Add an entry to the
musicarray. - The
config/song/*pattern infxmanifest.luaalready covers new files — no need to edit the manifest.
TIP
Avoid spaces in file names (use _ or -).
Good to know
- Autoplay: browsers often block autoplay with sound. The script tries to unlock audio on the first interaction; a single click starts the music.
- Order & shuffle: tracks play in array order unless shuffle is enabled.
- Loop: the loop button replays the current track when it ends.
durationis purely informational (display). The actual playback length comes from the audio file itself.