Skip to content

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:

FieldDescription
srcPath to the audio file in config/song/
trackTitleTitle shown in the player
durationDuration in M:SS format (display only)

Add a track

  1. Drop your .mp3 file into config/song/.
  2. Add an entry to the music array.
  3. The config/song/* pattern in fxmanifest.lua already 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.
  • duration is purely informational (display). The actual playback length comes from the audio file itself.