# Configuration

> Complete reference for global settings, Music Sync, boombox limits, permissions, music delivery and advanced audio files.

Open `/djadmin` to manage clubs and global settings. Complete [Installation](/docs/scripts/sky-dj/setup/installation) first, then choose how the global configuration should be managed.

## Choose SQL or file settings

`Config.IngameSettings = true` is the default. This switch is read from `config/config.lua` and requires a resource restart after editing.

<table>
<thead>
  <tr>
    <th>
      Mode
    </th>
    
    <th>
      Active global settings
    </th>
    
    <th>
      Where to make changes
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        IngameSettings = true
      </code>
    </td>
    
    <td>
      Saved settings in SQL; a new installation starts with the shipped defaults
    </td>
    
    <td>
      <code>
        /djadmin
      </code>
      
       → <strong>
        Settings
      </strong>
      
      , then save
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        IngameSettings = false
      </code>
    </td>
    
    <td>
      Values in <code>
        config/config.lua
      </code>
    </td>
    
    <td>
      Edit the existing file and restart <code>
        sky_dj
      </code>
    </td>
  </tr>
</tbody>
</table>

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

In SQL mode, the other values in the customer `config.lua` are ignored, including on the first start. The generated `source/shared/config_default.lua` supplies the shipped defaults. Existing SQL settings take precedence and survive restarts. Editing `config.lua` is not an import operation; do not edit generated defaults or delete the SQL row to apply a change.

</callout>

Switching to file mode does not copy saved SQL values into Lua. Review the file settings before switching. It disables global settings saves in-game and leaves the saved SQL settings intact for switching back later. Clubs, speaker and effect layouts, playlists and the boombox journal remain in SQL in either mode.

Sky DJ creates its `sky_dj_state` table and missing records automatically through `sky_base`. Back up this table before updating or changing the configuration mode. Sky DJ has its own administration interface; it does not require `sky_jobs_base` or register a `/jobconfig` section.

## Find a setting

Paths below are relative to the installed `sky_dj` resource. The reference lists **shipped defaults**; an existing installation can have different saved values. Numeric ranges are the server's accepted global-settings ranges. Keep file-mode values inside those ranges too.

<table>
<thead>
  <tr>
    <th>
      Section
    </th>
    
    <th>
      Main settings
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Audio & DJ
    </td>
    
    <td>
      <code>
        MaxVolume
      </code>
      
      , <code>
        MaxRadius
      </code>
      
      , <code>
        InteractDistance
      </code>
      
      , <code>
        MaxClubs
      </code>
      
      , <code>
        MarkerDrawDistance
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Music & Playlists
    </td>
    
    <td>
      <code>
        LivestreamEnabled
      </code>
      
      , <code>
        MusicDirectory
      </code>
      
      , music delivery, transfer and cache budgets, queue, playlist and track-length limits
    </td>
  </tr>
  
  <tr>
    <td>
      Music synchronization
    </td>
    
    <td>
      <code>
        MusicSync.enabled
      </code>
      
      , source deck, bass/melody response, channel selection and quiet-section behavior
    </td>
  </tr>
  
  <tr>
    <td>
      Festival grounds
    </td>
    
    <td>
      <code>
        FestivalGroundEnabled
      </code>
      
      , <code>
        FestivalFencesEnabled
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      Boombox
    </td>
    
    <td>
      Enabled state, item placement, command, volume ceiling, fixed range, device/audio limits and carrying
    </td>
  </tr>
  
  <tr>
    <td>
      Permissions
    </td>
    
    <td>
      <code>
        AdminCommand
      </code>
      
      , <code>
        CommandPermissions.djadmin
      </code>
      
      , <code>
        AdminAce
      </code>
    </td>
  </tr>
</tbody>
</table>

`IngameSettings` is a Boolean with default `true`; it is the file-owned mode switch described above. The remaining `Config` keys are listed in the sections below. Where the current editor has no control for a compatibility setting, this is stated explicitly.

## Audio and DJ limits

Open **Settings → Audio & DJ** in SQL mode.

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Accepted range
    </th>
    
    <th>
      Effect
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        MaxVolume
      </code>
    </td>
    
    <td>
      <code>
        2.0
      </code>
    </td>
    
    <td>
      <code>
        0.05
      </code>
      
      –<code>
        2.0
      </code>
    </td>
    
    <td>
      Global club-volume ceiling; shown as 5–200% in the editor.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MaxRadius
      </code>
    </td>
    
    <td>
      <code>
        150.0
      </code>
      
       m
    </td>
    
    <td>
      5–300 m
    </td>
    
    <td>
      Upper limit for saved club and individual speaker ranges.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        InteractDistance
      </code>
    </td>
    
    <td>
      <code>
        2.5
      </code>
      
       m
    </td>
    
    <td>
      1–5 m
    </td>
    
    <td>
      DJ interaction distance; server-side control checks include a small distance tolerance.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MaxClubs
      </code>
    </td>
    
    <td>
      <code>
        50
      </code>
    </td>
    
    <td>
      1–100, whole number
    </td>
    
    <td>
      Maximum custom clubs; the supplied festival does not count towards this limit.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MarkerDrawDistance
      </code>
    </td>
    
    <td>
      <code>
        20.0
      </code>
      
       m
    </td>
    
    <td>
      5–100 m
    </td>
    
    <td>
      Distance at which the DJ interaction marker is drawn. This does not extend audio range or grant access.
    </td>
  </tr>
</tbody>
</table>

Lua volume values are multipliers: `1.0` means 100%, and `2.0` means 200%. The administration interface displays percentages. The ceiling does not raise each club's saved volume or replace individual speaker tuning. Lower existing club and speaker values before reducing a global limit below them; the server rejects incompatible limits.

Start with the smallest speaker ranges that cover your venue, then tune speaker direction and gain in the club. Increasing marker distance only makes the interaction easier to find. The [Mixer and audio guide](/docs/scripts/sky-dj/features/mixer-and-audio) covers the separate per-club mix and speaker controls.

## Administrator and DJ access

The default command is `/djadmin`. Set `AdminCommand` without a leading slash when renaming it; the permission key remains `djadmin`. An old saved default `/clubadmin` migrates to `/djadmin`; custom saved command names are retained. Opening the menu requires a loaded character and fresh server authorization.

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Shipped default
    </th>
    
    <th>
      Accepted value
    </th>
    
    <th>
      Effect
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        AdminCommand
      </code>
    </td>
    
    <td>
      <code>
        'djadmin'
      </code>
    </td>
    
    <td>
      1–60 letters, digits, <code>
        _
      </code>
      
       or <code>
        -
      </code>
    </td>
    
    <td>
      Administration command without a leading slash.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        CommandPermissions.djadmin
      </code>
    </td>
    
    <td>
      <code>
        { "god", "superadmin", "admin" }
      </code>
    </td>
    
    <td>
      An ordered list of up to 30 unique group names, each 1–60 letters, digits, <code>
        _
      </code>
      
       or <code>
        -
      </code>
    </td>
    
    <td>
      Groups accepted through Sky Base's command permissions. An empty list leaves independent ACE access available.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        AdminAce
      </code>
    </td>
    
    <td>
      <code>
        'sky.dj.admin'
      </code>
    </td>
    
    <td>
      1–60 letters, digits, <code>
        _
      </code>
      
      , <code>
        .
      </code>
      
       or <code>
        -
      </code>
    </td>
    
    <td>
      Additional ACE granting administration access.
    </td>
  </tr>
</tbody>
</table>

In SQL mode, open `/djadmin` → **Settings → Permissions**. Enter group names separated by commas in **Admin groups (separate with comma)**, keep your required **ACE permission**, then save. The server rejects a change that would remove your current access.

In file mode, edit these entries inside the existing `Config` table in `config/config.lua`:

```lua [config/config.lua — file mode]
AdminCommand = 'djadmin',
CommandPermissions = {
    djadmin = { "god", "superadmin", "admin" },
},
AdminAce = 'sky.dj.admin',
```

Existing `AdminGroups` settings migrate automatically to `CommandPermissions.djadmin` while retaining exactly their former enabled groups. The additional `god` default applies to fresh installations only. For a manual file update, replace the old `AdminGroups` entry at the same position with this block, listing your own previous groups. Keep all other settings unchanged. Legacy file-mode values remain accepted; file mode does not rewrite saved SQL settings.

Configured groups use Sky Base's existing framework permission system, including group principal inheritance. A separate `sky_dj.djadmin` ACE also grants access; existing `sky.dj.admin` grants remain valid through `AdminAce`. Removing a configured group stops that group access path immediately, but does not revoke a separately granted ACE. Keep your framework's existing group memberships and grants.

**Optional server integration:** customize `Config.Functions.HasCommandPermission` in editable `config/sv_functions.lua`. Another trusted server resource can call `exports.sky_dj:HasCommandPermission(playerSource, "djadmin")` to obtain a Boolean permission result. Source `0` is allowed for trusted server integrations; it does not open an in-game menu or bypass the menu's loaded-character checks. This hook is not required for ordinary configuration.

Club access is separate. In the club editor, **DJ access** can allow administrators only, a job with a minimum rank, or **All players**. Allowing all players to use a DJ booth grants no global administration or playlist-management rights. DJ and FOH control also require the correct nearby interaction and routing bucket.

## Music folder and delivery

Open **Settings → Music & Playlists → Library & Queues** for these global values.

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Accepted value
    </th>
    
    <th>
      Effect
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        LivestreamEnabled
      </code>
    </td>
    
    <td>
      <code>
        false
      </code>
    </td>
    
    <td>
      Boolean
    </td>
    
    <td>
      Allows administrator-added public HTTPS audio/HLS sources in assigned club playlists. Saved in-game changes apply live; disabling pauses live decks and disconnects listeners without deleting their playlist entries.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicDirectory
      </code>
    </td>
    
    <td>
      <code>
        'config/music'
      </code>
    </td>
    
    <td>
      Resource-relative folder or <code>
        @resource/folder
      </code>
      
      , at most 240 characters
    </td>
    
    <td>
      Chooses the library scanned on the server. A leading <code>
        @
      </code>
      
       selects another resource.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicOnDemandPlayerKiBps
      </code>
    </td>
    
    <td>
      <code>
        1024
      </code>
      
       KiB/s
    </td>
    
    <td>
      64–2048, whole number
    </td>
    
    <td>
      On-demand transfer budget shared by one player's active song transfers.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicOnDemandGlobalKiBps
      </code>
    </td>
    
    <td>
      <code>
        8192
      </code>
      
       KiB/s
    </td>
    
    <td>
      256–16,384, whole number
    </td>
    
    <td>
      On-demand transfer budget shared by all players on the server.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicOnDemandCacheMiB
      </code>
    </td>
    
    <td>
      <code>
        128
      </code>
      
       MiB
    </td>
    
    <td>
      64–512, whole number
    </td>
    
    <td>
      Per-player budget for temporary compressed audio data in the on-demand browser cache.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MaxQueue
      </code>
    </td>
    
    <td>
      <code>
        30
      </code>
    </td>
    
    <td>
      1–100, whole number
    </td>
    
    <td>
      Tracks allowed in each deck queue. A mobile boombox queue also uses this limit, capped at 30.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MaxPlaylists
      </code>
    </td>
    
    <td>
      <code>
        50
      </code>
    </td>
    
    <td>
      1–200, whole number
    </td>
    
    <td>
      Maximum saved playlists.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MaxPlaylistTracks
      </code>
    </td>
    
    <td>
      <code>
        100
      </code>
    </td>
    
    <td>
      1–200, whole number
    </td>
    
    <td>
      Maximum tracks in one playlist.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MaxTrackSeconds
      </code>
    </td>
    
    <td>
      <code>
        7200
      </code>
      
       s
    </td>
    
    <td>
      60–14,400 s, whole number
    </td>
    
    <td>
      Maximum finite-track duration used for deck duration/reporting and queue advancement; also bounds boombox playback. The default is two hours. LIVE broadcasts have no finite track duration.
    </td>
  </tr>
</tbody>
</table>

### Optional livestreams

In SQL mode, use **Settings → Music & Playlists → Library & Queues → Enable livestreams**, then save. In file mode, edit `Config.LivestreamEnabled` in `config/config.lua` and restart `sky_dj`. A fresh or previously unconfigured installation keeps the option off; an existing saved choice remains authoritative.

This switch is separate from local **Normal / On-demand MP3** delivery and from Music Sync. Administrators add a direct source under **Playlists → Add livestream**, then assign that playlist to a club. DJs can load only assigned sources. See [Livestreams and radio](/docs/scripts/sky-dj/features/livestreams-and-radio) for HTTPS/CORS requirements, supported live controls and music-reactive effects.

### One MP3 folder, two delivery modes

Put your original `.mp3` files in `sky_dj/config/music`, with a maximum of **50 MiB per file**. Both modes use this same folder and the same installed resource; no variant folder or manifest replacement is needed. Normal playback needs no encoder. Optional On-demand delivery requires the process permission and full server restart in [On-demand server preparation](/docs/scripts/sky-dj/setup/installation#on-demand-server-preparation); its pinned server encoder installs automatically. No separate host Node/Yarn installation, terminal command, Nginx or external music service is required. Restart the resource after adding or replacing music files so its catalog and optional music package are rebuilt.

<table>
<thead>
  <tr>
    <th>
      Mode
    </th>
    
    <th>
      When music is downloaded
    </th>
    
    <th>
      Client storage
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Normal
      </strong>
      
      , checkbox off
    </td>
    
    <td>
      The first local MP3 load requests the optional FiveM music package, containing the whole <code>
        config/music
      </code>
      
       library. The shipped configuration does not request this package merely because a player connects.
    </td>
    
    <td>
      FiveM's native resource cache; the package can remain cached for later use.
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        On-demand MP3
      </strong>
      
      , checkbox on
    </td>
    
    <td>
      Only songs needed for playback or preparation are transferred through FiveM. Connecting, browsing the library or listing a playlist does not download the library or prefetch its queued songs.
    </td>
    
    <td>
      Temporary browser RAM cache, without persistent song storage on disk. Cached songs can be reused within the configured budget.
    </td>
  </tr>
</tbody>
</table>

In SQL mode, open `/djadmin` → **Settings → Music & Playlists → Library & Queues**. Check **On-demand MP3**, acknowledge the confirmation dialog, then save. Uncheck it and save to return to Normal. A successful save applies the change live without a resource restart. Loaded decks and queues are resolved again for the chosen mode; their positions, pause state and mixer settings are retained, but audio may need to load again.

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

**On-demand delivery is optional.** Playback waits for the complete prepared song; this is not progressive audio streaming. Each source MP3 must be at most **50 MiB**. Large songs, shared server bandwidth and several listeners can increase loading time. Switching modes cannot erase an existing FiveM music cache or cancel a native music-package download that has already started.

</callout>

The on-demand cache reserves twice the transferred compressed-audio size during transfer assembly, then one copy for a ready song. Songs currently in use remain pinned; unused entries are evicted when space is needed. If the budget cannot hold the active songs and a new transfer, the new load fails instead of growing this cache without a limit. Decoded audio, browser and FiveM memory are additional to this compressed-audio budget. The temporary cache is cleared when the audio page or resource is stopped.

This client budget is separate from the server's prepared-song cache: `data/music-cache/` retains up to 256 MiB / 64 entries and protects active outputs. Preparation uses one encoder job, with eight waiting jobs. Selected MP3s become stereo 96 kbps Ogg Opus when that makes the delivered file smaller; otherwise the original is used. Neither cache changes the original files or playlist filename IDs. Encoder installation, preparation and transfer have separate progress/error states; a larger client cache does not fix a failed encoder setup.

Transfer budgets count encoded data and overhead, so they are ceilings rather than promised raw MP3 speeds. The global budget is shared across listeners. Raising a limit does not guarantee a matching speed increase; server upload capacity, client connections and other transfers still matter. These three budget settings affect On-demand delivery only.

For file mode, edit these entries inside the existing `Config` table and restart `sky_dj`:

```lua [config/config.lua — file mode]
MusicDirectory = 'config/music',
MusicOnDemandPlayerKiBps = 1024,
MusicOnDemandGlobalKiBps = 8192,
MusicOnDemandCacheMiB = 128,
```

### Custom folders and existing installations

Keep the default folder for the supplied optional-package setup. In SQL mode, **Music & Playlists → Library & Queues → Music folder** changes `MusicDirectory`. An alternative such as `@sky_dj_music/music` selects a folder in another started resource on the same server. Use forward slashes and a resource-relative folder, not an absolute operating-system path.

Resource names use letters, digits, `_` and `-` and are at most 64 characters. Each folder segment starts with a letter, digit, `_` or `-`; subsequent characters can also include spaces and periods. Traversal (`..`), duplicate slashes, control characters and absolute paths are rejected. The catalog scans the selected folder rather than recursive subfolders.

The optional music package applies only to `sky_dj/config/music`. Normal delivery from another folder or resource requires ordinary client-published MP3 files, which can download when players connect. On-demand custom folders must remain private server files, outside ordinary client `files` entries and streamed asset folders. On-demand rejects ordinary client-published MP3s in the selected library or left in `sky_dj/config/music`. Other published audio remains subject to FiveM's normal downloads. See [Installation](/docs/scripts/sky-dj/setup/installation) before changing the folder or publishing rules.

Existing SQL settings remain authoritative when upgrading; do not reset `sky_dj_state` to enable a mode. A saved row without the on-demand opt-in stays in Normal mode. Missing transfer budgets receive the shipped defaults. For rows not yet migrated, a one-time upgrade changes the old default budget pair of `512` / `4096` to `1024` / `8192`; other saved budget pairs are retained. Legacy HTTPS/Opus delivery settings are retired and removed during the settings upgrade. Use the original MP3 library for the current delivery modes.

Keep the same track filenames when moving a library so saved playlist references remain valid. See [Mixer and audio](/docs/scripts/sky-dj/features/mixer-and-audio) for the club playback workflow. The [mobile boombox](/docs/scripts/sky-dj/features/boombox) has separate YouTube and Spotify pages.

## Music Sync reference

Global `Config.MusicSync` settings are edited under **Settings → Music synchronization**. The tabs are **Source**, **Channels**, **Response**, **Quiet** and **Detection**. The paths below are written in full so they can also be found in `config/config.lua`.

The global enable switch controls the normal-club response. A custom club also has its own **Lights & effects → Music Sync** controls, and the festival has separate **FOH → Music Sync** controls. Those venue-specific responses can run while global Music Sync is off; you do not need every enable switch on. They also use shared detection/response values, so global sensitivity changes can affect a venue with its own synchronization enabled. Use the venue's controls for participation and overrides.

Supported [live audio](/docs/scripts/sky-dj/features/livestreams-and-radio#make-lights-and-effects-follow-the-broadcast) can supply the same analyzer as local MP3s. Livestream playback must be enabled separately with `LivestreamEnabled`; enabling a light response does not import or start a stream.

### Source and sensitivity

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Accepted value
    </th>
    
    <th>
      Effect and tuning
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        MusicSync.enabled
      </code>
    </td>
    
    <td>
      <code>
        false
      </code>
    </td>
    
    <td>
      Boolean
    </td>
    
    <td>
      Enables normal-club music response. Off preserves manual presets. At least one channel must be selected for a response.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicSync.mode
      </code>
    </td>
    
    <td>
      <code>
        'bass'
      </code>
    </td>
    
    <td>
      <code>
        'bass'
      </code>
      
      , <code>
        'melody'
      </code>
      
      , <code>
        'full'
      </code>
      
      ; legacy <code>
        'beat'
      </code>
      
       and <code>
        'beat_bass'
      </code>
      
       remain readable
    </td>
    
    <td>
      Bass emphasizes low-frequency pulses, melody follows smoother melodic energy, and full combines both. The editor offers the three current modes and displays old beat modes as Bass.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicSync.deck
      </code>
    </td>
    
    <td>
      <code>
        'mix'
      </code>
    </td>
    
    <td>
      <code>
        'mix'
      </code>
      
      , <code>
        'A'
      </code>
      
       or <code>
        'B'
      </code>
    </td>
    
    <td>
      Chooses the audible crossfade mix or one deck. A paused or unavailable selected deck supplies no fresh signal.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicSync.sensitivity
      </code>
    </td>
    
    <td>
      <code>
        1.0
      </code>
    </td>
    
    <td>
      0.25–3
    </td>
    
    <td>
      Overall onset/BPM sensitivity. Higher values accept weaker spectral attacks; excessive sensitivity can accept unwanted transients.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicSync.bassSensitivity
      </code>
    </td>
    
    <td>
      <code>
        1.0
      </code>
    </td>
    
    <td>
      0.25–3
    </td>
    
    <td>
      Low-band response and kick detection sensitivity. Raise gradually if genuine kicks barely react.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicSync.melodySensitivity
      </code>
    </td>
    
    <td>
      <code>
        1.0
      </code>
    </td>
    
    <td>
      0.25–3
    </td>
    
    <td>
      Melodic envelope strength. Raise for quiet melodic material, lower if its response stays saturated.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicSync.tempoLock
      </code>
    </td>
    
    <td>
      <code>
        true
      </code>
    </td>
    
    <td>
      Boolean
    </td>
    
    <td>
      Smooths updates to a confident detected tempo rather than following each new estimate immediately.
    </td>
  </tr>
</tbody>
</table>

### Pulse timing and show response

The depth values are stored as 0–1 fractions and shown as 0–100% in the editor. They blend response with the active fixture/preset; they do not replace every fixture's own settings.

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Accepted range
    </th>
    
    <th>
      Effect and tuning
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        MusicSync.attackMs
      </code>
    </td>
    
    <td>
      <code>
        30
      </code>
      
       ms
    </td>
    
    <td>
      10–300 ms
    </td>
    
    <td>
      Rise time of the analyzed energy envelopes. Lower values respond more sharply; higher values soften the onset.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicSync.releaseMs
      </code>
    </td>
    
    <td>
      <code>
        350
      </code>
      
       ms
    </td>
    
    <td>
      80–2500 ms
    </td>
    
    <td>
      Envelope and pulse decay. Higher values leave longer tails; reduce if consecutive beats blur together.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicSync.holdMs
      </code>
    </td>
    
    <td>
      <code>
        120
      </code>
      
       ms
    </td>
    
    <td>
      40–1000 ms
    </td>
    
    <td>
      Holds the beat pulse before decay. It is not a manual flame/CO₂ burst-duration setting.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicSync.intensityDepth
      </code>
    </td>
    
    <td>
      <code>
        0.70
      </code>
    </td>
    
    <td>
      0–1
    </td>
    
    <td>
      Brightness modulation depth. At zero the fixture keeps its base intensity; higher values give the music more control.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicSync.movementDepth
      </code>
    </td>
    
    <td>
      <code>
        0.70
      </code>
    </td>
    
    <td>
      0–1
    </td>
    
    <td>
      Amount of music-driven movement timing. Lower values retain more of the preset's normal movement.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicSync.colorDepth
      </code>
    </td>
    
    <td>
      <code>
        0.30
      </code>
    </td>
    
    <td>
      0–1
    </td>
    
    <td>
      Amount of music-driven colour variation. Zero retains the base colour response.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicSync.strobeDepth
      </code>
    </td>
    
    <td>
      <code>
        1.0
      </code>
    </td>
    
    <td>
      0–1
    </td>
    
    <td>
      Strength of beat-driven strobe response. <strong>
        Zero retains the fixture's normal strobe clock
      </strong>
      
      ; switch the device off when no strobe is wanted.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicSync.smoothingMs
      </code>
    </td>
    
    <td>
      <code>
        150
      </code>
      
       ms
    </td>
    
    <td>
      30–1500 ms
    </td>
    
    <td>
      Smooths the resulting movement, colour and brightness response. Increase for gentler transitions; decrease for a tighter response.
    </td>
  </tr>
</tbody>
</table>

### Quiet sections

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Accepted range
    </th>
    
    <th>
      Effect and tuning
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        MusicSync.quietThreshold
      </code>
    </td>
    
    <td>
      <code>
        0.08
      </code>
    </td>
    
    <td>
      0.01–0.5
    </td>
    
    <td>
      Energy threshold for quiet-section behavior. Higher values classify more material as quiet.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicSync.quietIntensity
      </code>
    </td>
    
    <td>
      <code>
        0.12
      </code>
    </td>
    
    <td>
      0–1
    </td>
    
    <td>
      Quiet-section brightness response target, blended through <code>
        intensityDepth
      </code>
      
      ; this is not a master-volume control.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicSync.quietSpeed
      </code>
    </td>
    
    <td>
      <code>
        0.20
      </code>
    </td>
    
    <td>
      0–1
    </td>
    
    <td>
      Quiet-section movement target. Lower values produce slower motion.
    </td>
  </tr>
</tbody>
</table>

### Detection and frequency bands

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Accepted range
    </th>
    
    <th>
      Effect and tuning
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        MusicSync.noiseFloor
      </code>
    </td>
    
    <td>
      <code>
        0.012
      </code>
    </td>
    
    <td>
      0.001–0.15
    </td>
    
    <td>
      Signal removed before analysis. Raise to ignore low-level noise; setting it too high can discard real quiet material.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicSync.minBpm
      </code>
    </td>
    
    <td>
      <code>
        45
      </code>
      
       BPM
    </td>
    
    <td>
      30–480 BPM
    </td>
    
    <td>
      Lower bound of tempo detection.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicSync.maxBpm
      </code>
    </td>
    
    <td>
      <code>
        400
      </code>
      
       BPM
    </td>
    
    <td>
      30–480 BPM
    </td>
    
    <td>
      Upper bound of tempo detection and minimum separation of detected kicks.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicSync.fallbackBpm
      </code>
    </td>
    
    <td>
      <code>
        128
      </code>
      
       BPM
    </td>
    
    <td>
      30–480 BPM, within the chosen tempo window
    </td>
    
    <td>
      Motion reference when the detected tempo is unavailable or insufficiently confident. It does not manufacture confirmed beats.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicSync.bassLowHz
      </code>
    </td>
    
    <td>
      <code>
        30
      </code>
      
       Hz
    </td>
    
    <td>
      20–500 Hz
    </td>
    
    <td>
      Lower edge of the analyzed bass band.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicSync.bassHighHz
      </code>
    </td>
    
    <td>
      <code>
        200
      </code>
      
       Hz
    </td>
    
    <td>
      20–500 Hz
    </td>
    
    <td>
      Upper edge of the bass band. Narrowing the band can separate kicks from higher content.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicSync.melodyLowHz
      </code>
    </td>
    
    <td>
      <code>
        250
      </code>
      
       Hz
    </td>
    
    <td>
      100–12,000 Hz
    </td>
    
    <td>
      Lower edge of the analyzed melodic band.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicSync.melodyHighHz
      </code>
    </td>
    
    <td>
      <code>
        4000
      </code>
      
       Hz
    </td>
    
    <td>
      100–12,000 Hz
    </td>
    
    <td>
      Upper edge of the melodic band.
    </td>
  </tr>
</tbody>
</table>

`minBpm` must be strictly below `maxBpm`, and `fallbackBpm` must lie between them. Each band's lower frequency must be strictly below its upper frequency. These relationships are checked in addition to the individual ranges.

### Channel switches

Every channel below defaults to `true` and accepts a Boolean. They select which existing effect families follow synchronization; they do not place props or enable a disabled device.

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Effect family
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        MusicSync.channels.lasers
      </code>
    </td>
    
    <td>
      Laser response (<code>
        L
      </code>
      
      )
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicSync.channels.strobes
      </code>
    </td>
    
    <td>
      Strobe response (<code>
        S
      </code>
      
      )
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicSync.channels.facade
      </code>
    </td>
    
    <td>
      Stage illumination (<code>
        W
      </code>
      
      )
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicSync.channels.towers
      </code>
    </td>
    
    <td>
      Tower illumination (<code>
        T
      </code>
      
      )
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicSync.channels.co2
      </code>
    </td>
    
    <td>
      CO₂/cryo jets (<code>
        C
      </code>
      
      )
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicSync.channels.fire
      </code>
    </td>
    
    <td>
      Flames (<code>
        F
      </code>
      
      ), triggered by strong bass peaks rather than continuous loudness
    </td>
  </tr>
</tbody>
</table>

Tune with an assigned MP3 or supported livestream playing on the selected deck. Start with one visible channel and the defaults. If the show barely reacts, check deck playback, the appropriate global/club/FOH enable switch and device participation first. Then adjust the relevant sensitivity in small steps. For unwanted activity during quiet passages, tune `noiseFloor` and `quietThreshold` before raising every response depth. Change timing separately from detection so it is clear which value helped. See [Lights and effects](/docs/scripts/sky-dj/features/lights-and-effects) for manual shots and festival-specific behavior.

## MP3 uploads

The **Music import** tab is available while On-demand MP3 is enabled. Its settings are shown directly below the upload controls. Follow [MP3 uploads and playlists](/docs/scripts/sky-dj/features/music-import) for in-game file selection, playlist assignment and player permissions.

<table>
<thead>
  <tr>
    <th>
      File-mode key
    </th>
    
    <th>
      Shipped default
    </th>
    
    <th>
      Accepted range / effect
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        MusicImportEnabled
      </code>
    </td>
    
    <td>
      <code>
        false
      </code>
    </td>
    
    <td>
      Enables MP3 uploads; also requires On-demand and <code>
        MusicDirectory = 'config/music'
      </code>
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicImportPlayers
      </code>
    </td>
    
    <td>
      <code>
        false
      </code>
    </td>
    
    <td>
      Global player-upload permission; the venue must also allow uploads and the player must have normal DJ access
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicImportMaxSeconds
      </code>
    </td>
    
    <td>
      <code>
        900
      </code>
    </td>
    
    <td>
      <code>
        60
      </code>
      
      –<code>
        7200
      </code>
      
       seconds per song
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicImportMaxMiB
      </code>
    </td>
    
    <td>
      <code>
        32
      </code>
    </td>
    
    <td>
      <code>
        5
      </code>
      
      –<code>
        50
      </code>
      
       MiB for both the uploaded source and final MP3
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        MusicImportLibraryMiB
      </code>
    </td>
    
    <td>
      <code>
        1024
      </code>
    </td>
    
    <td>
      <code>
        64
      </code>
      
      –<code>
        10240
      </code>
      
       MiB total in the music folder; the 500-file limit also applies
    </td>
  </tr>
</tbody>
</table>

Per-club **Allow player MP3 uploads at this DJ booth** starts off for new clubs and existing clubs without that saved value. Enable it under **Manage clubs → select club → Playlists**, separately from the global player switch. Administrators manage playlist creation in the central music library; player uploads are restricted to the venue's assigned playlists.

## Boombox settings

Open **Settings → Boombox**. Boombox volume and radius have independent ceilings from the club system.

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Accepted value
    </th>
    
    <th>
      Effect
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        BoomboxEnabled
      </code>
    </td>
    
    <td>
      <code>
        true
      </code>
    </td>
    
    <td>
      Boolean
    </td>
    
    <td>
      Allows mobile devices. Disabling stores active devices and silences their playback; owners retain item-recovery access.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        BoomboxRequireItem
      </code>
    </td>
    
    <td>
      <code>
        false
      </code>
    </td>
    
    <td>
      Boolean
    </td>
    
    <td>
      Requires an inventory item for placement when enabled. With <code>
        false
      </code>
      
      , the command places without inventory calls.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        BoomboxItem
      </code>
    </td>
    
    <td>
      <code>
        'sky_boombox'
      </code>
    </td>
    
    <td>
      1–60 characters: letters, digits, <code>
        _
      </code>
      
       or <code>
        -
      </code>
    </td>
    
    <td>
      Usable-item name registered through Sky Base. Existing claims keep their original item name and metadata.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        BoomboxCommand
      </code>
    </td>
    
    <td>
      <code>
        'boombox'
      </code>
    </td>
    
    <td>
      Empty, or 1–60 letters, digits, <code>
        _
      </code>
      
       or <code>
        -
      </code>
    </td>
    
    <td>
      Placement/open/reclaim command without a leading slash. An empty value disables the command; inventory use remains available.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        BoomboxMaxDevices
      </code>
    </td>
    
    <td>
      <code>
        32
      </code>
    </td>
    
    <td>
      1–64, whole number
    </td>
    
    <td>
      Total deployed and recoverable devices. Each owner still has at most one.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        BoomboxMaxVolume
      </code>
    </td>
    
    <td>
      <code>
        0.7
      </code>
    </td>
    
    <td>
      0.05–1.0
    </td>
    
    <td>
      Independent mobile volume ceiling, shown as 5–100% in the editor.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        BoomboxMaxRange
      </code>
    </td>
    
    <td>
      <code>
        25
      </code>
      
       m
    </td>
    
    <td>
      3–50 m
    </td>
    
    <td>
      Fixed audible radius for all boomboxes, including restored devices. Players have no per-device range adjustment.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        BoomboxMaxAudible
      </code>
    </td>
    
    <td>
      <code>
        2
      </code>
    </td>
    
    <td>
      1–4, whole number
    </td>
    
    <td>
      Maximum nearest audible, playing boomboxes each client renders as audio.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        BoomboxCarry
      </code>
    </td>
    
    <td>
      <code>
        true
      </code>
    </td>
    
    <td>
      Boolean
    </td>
    
    <td>
      Allows owners to carry and put down their device.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        BoomboxDui
      </code>
    </td>
    
    <td>
      <code>
        true
      </code>
    </td>
    
    <td>
      Boolean
    </td>
    
    <td>
      Compatibility name for allowing the native prop display. This no longer creates a browser/DUI and does not turn new displays on.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        BoomboxDuiDistance
      </code>
    </td>
    
    <td>
      <code>
        8
      </code>
      
       m
    </td>
    
    <td>
      2–15 m
    </td>
    
    <td>
      Maximum native display visibility distance; at most one nearest display is drawn per client.
    </td>
  </tr>
</tbody>
</table>

`BoomboxDui` and `BoomboxDuiDistance` remain in saved/global configuration for compatibility. They have no controls in the current editor, and the player panel has no display selector. Unrelated settings saves preserve them. Use the documented file mode when intentionally managing these file values. New devices start with display mode off.

Keep the fixed radius appropriate for a portable speaker. Raising `BoomboxMaxAudible` permits more overlapping online players on each client; it does not improve the sound of one device. See [Boombox](/docs/scripts/sky-dj/features/boombox) for placement-first behavior, item definitions, shared access and restart recovery.

## Festival grounds and fences

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Accepted value
    </th>
    
    <th>
      Effect
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        FestivalGroundEnabled
      </code>
    </td>
    
    <td>
      <code>
        true
      </code>
    </td>
    
    <td>
      Boolean
    </td>
    
    <td>
      Loads the supplied festival grounds and enables its booth.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        FestivalFencesEnabled
      </code>
    </td>
    
    <td>
      <code>
        true
      </code>
    </td>
    
    <td>
      Boolean
    </td>
    
    <td>
      Loads the supplied fence perimeter when festival grounds are enabled.
    </td>
  </tr>
</tbody>
</table>

`FestivalGroundEnabled = true` enables the Vespucci Beach venue and its DJ booth. It can be changed under **Settings → Festival grounds**. This switch controls the supplied festival; it is separate from the custom clubs you create.

`FestivalFencesEnabled = true` controls the festival perimeter fences independently. Fences require the festival grounds to be enabled. Set it to `false` to keep the festival without its supplied fence perimeter.

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

The festival includes a large map, speakers and show effects. Enabling it can increase **client resmon time**, especially near the venue with effects active. There is no guaranteed millisecond value: compare enabled and disabled operation on your server with representative clients, graphics settings and player activity.

</callout>

`MusicSync.enabled` is `false` by default and controls normal club synchronization. The festival has its own **FOH → Music Sync** controls, also enabled explicitly; save there to return manually overridden festival channels to automatic control. Manual controls remain available without music. Devices saved as disabled do not follow presets or Music Sync. The FOH panel shows their counts and offers separate actions to enable the flame or CO₂ devices. See [Lights and effects](/docs/scripts/sky-dj/features/lights-and-effects) for show operation.

## Retained media timeout

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Accepted range
    </th>
    
    <th>
      Scope
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        MediaTimeout
      </code>
    </td>
    
    <td>
      <code>
        10000
      </code>
      
       ms
    </td>
    
    <td>
      2000–30,000 ms
    </td>
    
    <td>
      Retained media-resolution request timeout in the UI/client request layer.
    </td>
  </tr>
</tbody>
</table>

This setting has no current global-editor field. The current club library resolves local catalog entries rather than online media requests, so changing it does not extend MP3 loading timeouts. Mobile YouTube metadata has its own fixed five-second lookup timeout. Keep the default; the current UI has no online resolution workflow that needs tuning here.

## Advanced audio file

`config/audio.lua` defines `SkyDjAudioConfig`, separately from `Config` and SQL global settings. Edit the file and restart to apply it. These values have no configurator range validation; use the shipped values as the baseline.

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Unit/type
    </th>
    
    <th>
      Effect
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        SkyDjAudioConfig.RefreshTime
      </code>
    </td>
    
    <td>
      <code>
        300
      </code>
    </td>
    
    <td>
      Milliseconds
    </td>
    
    <td>
      Embedded engine player-position update interval and browser distance/volume refresh timing. Lower intervals increase update work; this is separate from Music Sync analysis and server synchronization.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        SkyDjAudioConfig.distanceBeforeUpdatingPos
      </code>
    </td>
    
    <td>
      <code>
        40
      </code>
    </td>
    
    <td>
      Metres
    </td>
    
    <td>
      Extra proximity margin around a spatial sound's range for position updates and range management. It does not enlarge the sound's configured audible radius.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        SkyDjAudioConfig.interact_sound_enable
      </code>
    </td>
    
    <td>
      <code>
        false
      </code>
    </td>
    
    <td>
      Boolean
    </td>
    
    <td>
      Enables the optional InteractSound compatibility handlers. Leave it off unless another resource needs that compatibility API.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        SkyDjAudioConfig.interact_sound_file
      </code>
    </td>
    
    <td>
      <code>
        'ogg'
      </code>
    </td>
    
    <td>
      File-extension string
    </td>
    
    <td>
      Extension appended to compatibility sound basenames. Supply and publish matching sound files when using the compatibility handlers.
    </td>
  </tr>
</tbody>
</table>

Avoid enabling two resources that both handle the same InteractSound events. The normal DJ/boombox system uses the embedded engine without requiring this emulator or a separate sound resource.

## Sample catalog and per-club soundboard

`config/soundboard.lua` defines the file-owned `ClubSamples` catalog. Every entry has a stable `id`, a `label`, a sample `file` and its `duration` in seconds. Preserve IDs and the 16-entry layout when replacing a sound so saved club pad assignments keep their meaning. The runtime indexes the catalog by its position, matching the shipped IDs 1–16.

<table>
<thead>
  <tr>
    <th>
      ID
    </th>
    
    <th>
      Label
    </th>
    
    <th>
      File
    </th>
    
    <th>
      Duration (s)
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      1
    </td>
    
    <td>
      RISE
    </td>
    
    <td>
      <code>
        phaserUp1.ogg
      </code>
    </td>
    
    <td>
      0.496327
    </td>
  </tr>
  
  <tr>
    <td>
      2
    </td>
    
    <td>
      FALL
    </td>
    
    <td>
      <code>
        phaserDown1.ogg
      </code>
    </td>
    
    <td>
      0.470204
    </td>
  </tr>
  
  <tr>
    <td>
      3
    </td>
    
    <td>
      ZAP
    </td>
    
    <td>
      <code>
        zap1.ogg
      </code>
    </td>
    
    <td>
      1.018776
    </td>
  </tr>
  
  <tr>
    <td>
      4
    </td>
    
    <td>
      LASER
    </td>
    
    <td>
      <code>
        laser1.ogg
      </code>
    </td>
    
    <td>
      1.100363
    </td>
  </tr>
  
  <tr>
    <td>
      5
    </td>
    
    <td>
      POWER
    </td>
    
    <td>
      <code>
        powerUp1.ogg
      </code>
    </td>
    
    <td>
      1.201633
    </td>
  </tr>
  
  <tr>
    <td>
      6
    </td>
    
    <td>
      JUMP
    </td>
    
    <td>
      <code>
        phaseJump1.ogg
      </code>
    </td>
    
    <td>
      0.470204
    </td>
  </tr>
  
  <tr>
    <td>
      7
    </td>
    
    <td>
      LOW
    </td>
    
    <td>
      <code>
        lowDown.ogg
      </code>
    </td>
    
    <td>
      0.783673
    </td>
  </tr>
  
  <tr>
    <td>
      8
    </td>
    
    <td>
      HIGH
    </td>
    
    <td>
      <code>
        highUp.ogg
      </code>
    </td>
    
    <td>
      0.548571
    </td>
  </tr>
  
  <tr>
    <td>
      9
    </td>
    
    <td>
      TRIPLE
    </td>
    
    <td>
      <code>
        threeTone1.ogg
      </code>
    </td>
    
    <td>
      0.827052
    </td>
  </tr>
  
  <tr>
    <td>
      10
    </td>
    
    <td>
      SPACE
    </td>
    
    <td>
      <code>
        spaceTrash1.ogg
      </code>
    </td>
    
    <td>
      1.451315
    </td>
  </tr>
  
  <tr>
    <td>
      11
    </td>
    
    <td>
      DOUBLE
    </td>
    
    <td>
      <code>
        zapTwoTone.ogg
      </code>
    </td>
    
    <td>
      1.306122
    </td>
  </tr>
  
  <tr>
    <td>
      12
    </td>
    
    <td>
      SWEEP
    </td>
    
    <td>
      <code>
        phaserUp3.ogg
      </code>
    </td>
    
    <td>
      0.522449
    </td>
  </tr>
  
  <tr>
    <td>
      13
    </td>
    
    <td>
      BELL
    </td>
    
    <td>
      <code>
        impactBell_heavy_000.ogg
      </code>
    </td>
    
    <td>
      1.480181
    </td>
  </tr>
  
  <tr>
    <td>
      14
    </td>
    
    <td>
      METAL
    </td>
    
    <td>
      <code>
        impactMetal_heavy_000.ogg
      </code>
    </td>
    
    <td>
      0.167664
    </td>
  </tr>
  
  <tr>
    <td>
      15
    </td>
    
    <td>
      PUNCH
    </td>
    
    <td>
      <code>
        impactPunch_heavy_000.ogg
      </code>
    </td>
    
    <td>
      0.649025
    </td>
  </tr>
  
  <tr>
    <td>
      16
    </td>
    
    <td>
      PLATE
    </td>
    
    <td>
      <code>
        impactPlate_heavy_000.ogg
      </code>
    </td>
    
    <td>
      0.488662
    </td>
  </tr>
</tbody>
</table>

The file is resolved under `source/html/samples/`. A replacement must exist there and be included in the resource manifest. Keep `duration` aligned with the actual recording because the server uses it for sample lifetime and cleanup. Changing this Lua catalog requires a restart; adding runtime audio files also requires publishing those assets correctly.

The mixer's **Soundboard & mixer** panel manages separate per-club settings saved in SQL:

<table>
<thead>
  <tr>
    <th>
      Control
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Accepted value
    </th>
    
    <th>
      Effect
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Pad assignments
    </td>
    
    <td>
      IDs 1–16 in order
    </td>
    
    <td>
      Exactly 16 selections, each ID 1–16
    </td>
    
    <td>
      Selects a catalog sample for each A/B pad; right-click a pad to open its assignment.
    </td>
  </tr>
  
  <tr>
    <td>
      Sample volume
    </td>
    
    <td>
      <code>
        0.65
      </code>
      
       / 65%
    </td>
    
    <td>
      0–1
    </td>
    
    <td>
      Sample playback level for this club.
    </td>
  </tr>
  
  <tr>
    <td>
      Lower music during samples
    </td>
    
    <td>
      <code>
        false
      </code>
    </td>
    
    <td>
      Boolean
    </td>
    
    <td>
      Enables music ducking while samples play.
    </td>
  </tr>
  
  <tr>
    <td>
      Crossfader curve
    </td>
    
    <td>
      <code>
        'smooth'
      </code>
    </td>
    
    <td>
      <code>
        'smooth'
      </code>
      
      , <code>
        'linear'
      </code>
      
       or <code>
        'cut'
      </code>
    </td>
    
    <td>
      Chooses the club mixer's crossfade behavior.
    </td>
  </tr>
</tbody>
</table>

Save with **Save for this club**. Pads use **1–8** and **Q W E R T Z U I** while the mixer is active; the loop switch repeats a pad, and sample cut cancels active samples. At most four samples can play simultaneously, and loops stop after 30 seconds. These playback limits are fixed behavior, not additional `Config` settings.

## Microphone and voice providers

Announcements use the existing Sky Base voice integration; there is no extra Sky DJ microphone configuration table. Update `sky_base` together with `sky_dj` and keep the voice provider selected there.

<table>
<thead>
  <tr>
    <th>
      Provider
    </th>
    
    <th>
      DJ microphone behavior
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      pma-voice
    </td>
    
    <td>
      Hands-free announcements with listener gain derived from the Main PA's coverage, levels, mute and room boundary. Requires the public <code>
        isPlayerMuted
      </code>
      
       export to preserve player mutes.
    </td>
  </tr>
  
  <tr>
    <td>
      SaltyChat / Yaca
    </td>
    
    <td>
      Range-based announcements around the DJ, capped at 100 m. The provider's existing PTT or voice activation remains in control; this does not reproduce per-speaker PA routing.
    </td>
  </tr>
  
  <tr>
    <td>
      Other or unavailable providers
    </td>
    
    <td>
      Announcements are unavailable; local MP3 mixing does not require the microphone feature.
    </td>
  </tr>
</tbody>
</table>

See [Microphone announcements](/docs/scripts/sky-dj/features/mixer-and-audio#microphone-announcements) for operation and stop conditions.

## Language and dependencies

Sky DJ follows `Sky.Config.locale` from `sky_base`, with English fallback. Its 19 JSON dictionaries are in `config/locales/`. There is no separate `Config.Locale` setting in Sky DJ.

The resource supports **ESX, QBCore and Qbox through Sky Base** and requires **OneSync**, **ox_lib**, **sky_base** and FiveM’s built-in **yarn** resource. SQL uses the provider configured by `sky_base`; no second audio resource or Jobs Base is required. A configured target provider is optional; the standard interaction uses the Sky TextUI/help adapter when target is disabled. See [Installation](/docs/scripts/sky-dj/setup/installation) for startup order and [Troubleshooting](/docs/scripts/sky-dj/reference/troubleshooting) for access or configuration errors.
