# Overview

> Set up Sky DJ, mix local music or optional livestreams, create clubs and operate speakers, lights, effects, microphones and portable boomboxes.

DJ System provides two-deck mixing, shared playlists, spatial speakers and synchronized lights and effects. Create your own clubs with an in-game placement gizmo, use portable boomboxes, or enable the Vespucci Beach festival with its separate FOH light desk.

The resource is **sky_dj** and includes its audio engine. It supports **ESX, QBCore and Qbox through sky_base** and requires **OneSync, ox_lib and the built-in yarn resource**, with a working SQL provider configured in Sky Base. Bring your own music library; demonstration music is not included.

Use the manifest version in your installed download when reporting a problem. If a documented option is missing, follow the [update checklist](/docs/scripts/sky-dj/setup/installation#updating-an-existing-installation) and install the complete matching release while preserving your saved data. Sky DJ is available in the [public shop](/shop/dj-system). Jobs Base and a separate sound resource are not required.

<callout color="warning" icon="i-lucide-triangle-alert">

Test your own clients and multiplayer conditions before relying on it for a live event.

</callout>

## Set up your first club

<steps level="3">

### Install the resource

Follow [Installation](/docs/scripts/sky-dj/setup/installation) for dependencies, start order, database setup and your MP3 library. The customer package includes the built frontend.

### Configure access and create a club

Open `/djadmin` with an authorized account. Use [Configuration](/docs/scripts/sky-dj/setup/configuration) to choose who owns the settings, then [create a club](/docs/scripts/sky-dj/features/clubs-and-placement) with a DJ booth and at least one speaker. Save the club.

### Load music and check the sound

Add library tracks to a playlist and assign it to the club. At the booth, load deck A or B and play. Check speaker direction, range and output routing using [Mixer and audio](/docs/scripts/sky-dj/features/mixer-and-audio). Music Sync is optional; ordinary playback does not require it.

</steps>

## Find your guide

- [Clubs and placement](/docs/scripts/sky-dj/features/clubs-and-placement) — Set DJ access, instances, room boundaries and permanent equipment positions.
- [Mixer and audio](/docs/scripts/sky-dj/features/mixer-and-audio) — Use tempo, EQ, loops, transitions, automix and headphones; align speaker delays, set an independent booth mix and make microphone announcements.
- [MP3 uploads and playlists](/docs/scripts/sky-dj/features/music-import) — Choose MP3 files inside FiveM, add them to playlists and optionally allow uploads at selected DJ booths.
- [Livestreams and radio](/docs/scripts/sky-dj/features/livestreams-and-radio) — Add assigned HTTPS audio/HLS broadcasts, operate LIVE decks and let Music Sync drive your lights and effects.
- [Lights and effects](/docs/scripts/sky-dj/features/lights-and-effects) — Place fixtures, test them manually, and configure FOH presets, Music Sync, lasers and finite flame/CO₂ sequences.
- [Boombox](/docs/scripts/sky-dj/features/boombox) — Place a portable player, share YouTube playback or use the separate personal Spotify Embed.

For integration, see the [client and server exports](/docs/scripts/sky-dj/reference/exports). If something is not working, start with [Troubleshooting](/docs/scripts/sky-dj/reference/troubleshooting).

## Music delivery

One `sky_dj` resource uses your original MP3s in **config/music/** for both modes. You do not convert those files yourself or need a separate music host. Normal plays the originals; On-demand automatically prepares cached stereo 96 kbps Ogg Opus on the server and retains the original when preparation cannot reduce its size. Choose the mode in `/djadmin` → **Settings → Music & Playlists → On-demand MP3**, then save. Enabling the on-demand option requires confirming its warning.

<table>
<thead>
  <tr>
    <th>
      Detail
    </th>
    
    <th>
      Normal MP3
    </th>
    
    <th>
      On-demand MP3
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      In-game checkbox
    </td>
    
    <td>
      Off; shipped default
    </td>
    
    <td>
      On; optional
    </td>
  </tr>
  
  <tr>
    <td>
      Delivery
    </td>
    
    <td>
      First local MP3 use requests the complete optional music pack and mounts it in FiveM's native cache; this includes PFL headphones
    </td>
    
    <td>
      Only currently needed songs transfer through FiveM after server-side preparation; each prepared song must arrive completely before playback
    </td>
  </tr>
  
  <tr>
    <td>
      During connection
    </td>
    
    <td>
      No automatic music-library request
    </td>
    
    <td>
      No optional music-pack request
    </td>
  </tr>
  
  <tr>
    <td>
      Music folder
    </td>
    
    <td>
      <code>
        config/music/
      </code>
    </td>
    
    <td>
      The same <code>
        config/music/
      </code>
    </td>
  </tr>
</tbody>
</table>

Joining inside an audible, already playing club can require its current songs after connection. In Normal mode, that first local use can request the complete pack. Additional copies published through ordinary client `files`, streamed assets or another resource still download independently of this checkbox. Keep the supplied manifest and default music folder for the behaviour above.

Saving switches active music sources live without moving files, replacing the resource or restarting it. A Normal pack download already started and existing native cache files remain when you switch to On-demand. Adding or replacing MP3s manually still requires restarting their owning resource to rebuild the pack and catalogue. See [Installation](/docs/scripts/sky-dj/setup/installation).

With `Config.IngameSettings = true`, the checkbox is saved in SQL and existing choices are retained during updates. File mode uses the music-delivery setting in `config/config.lua` instead; it ships as `false`. Follow [Configuration](/docs/scripts/sky-dj/setup/configuration) when changing who owns these settings.

FiveM supplies the internal runtime. Normal playback needs no encoder or external host. On-demand delivery automatically installs and runs its pinned server encoder after the explicit process permission and full server restart described in [Installation](/docs/scripts/sky-dj/setup/installation#on-demand-server-preparation). No separate host Node.js/Yarn installation, terminal command, domain or music-hosting service is required. Both modes retain the club mixer and spatial audio; YouTube and Spotify remain separate boombox features.

Uploads completed through **Music import** are added to the On-demand catalogue immediately. See [MP3 uploads and playlists](/docs/scripts/sky-dj/features/music-import) for setup and booth permissions. Returning to Normal after adding songs requires rebuilding its optional pack with a resource restart.

### Optional live broadcasts

Club playlists can also contain administrator-added **HTTPS radio/audio or HLS livestreams**. **Enable livestreams** is off by default and separate from the local MP3 delivery mode. LIVE decks retain manual mixing and can feed the existing optional Music Sync, but do not support seeking, loops, tempo changes or automatic transitions. Start with [Livestreams and radio](/docs/scripts/sky-dj/features/livestreams-and-radio) for setup, CORS and listener-buffer behavior.

## Optional festival

The Vespucci Beach venue has a main stage, four crowd towers, a DJ position, a separate FOH desk and optional perimeter fences. Enable or disable it independently of your own clubs. Its controls and performance checks are covered in [Lights and effects](/docs/scripts/sky-dj/features/lights-and-effects#festival-stage-and-client-performance).

<callout color="warning" icon="i-lucide-triangle-alert">

Enabling the festival stage **can increase client resmon time and GPU load**, especially near the stage or with several effects active. The actual cost depends on client hardware, settings and the rest of your server. Measure your own setup; no fixed millisecond value is guaranteed.

</callout>

From version 0.1.3, the customer download includes the Line Array speakers, festival subwoofer and both tent models. Keep the supplied `LINE_ARRAY_LICENSE.html` notice with the resource. Remove old separate `sky_dj_line_array` and `sky_dj_local_props` starts when switching to these bundled models. Demonstration music and a separate nightclub MLO are not included; add your own MP3s and use your chosen venue map for custom clubs.

## Updates and saved data

Settings, clubs, device layouts and playlists are persisted in SQL. Keep backups when updating and follow the [update checklist](/docs/scripts/sky-dj/setup/installation#updating-an-existing-installation).
