Immersion

Boombox

A portable and in-vehicle speaker with 3D synced music from YouTube, a direct audio URL or a preset — and no xsound required.

Version
1.0.3
Resource
SF-Boombox
Version 1.0.3 Resource SF-Boombox Frameworks ESX · QBCore · QBX · Standalone Bundled languages 5 Store page View

Overview#

Its own audio engine

Runs without xsound. If xsound is already installed, it is picked up and used automatically.

Three sources

A YouTube link, a direct audio URL, or one of the stations you preconfigured in the menu.

3D and synced

Everyone within range hears the same thing at the same moment, positioned in the world.

Vehicle speaker

A second speaker lives in cars, opened with /carmusic from inside or nearby.

Streamer mode

/stream mutes the music for that player only. Everyone else keeps hearing it.

Control policy

Either everyone can control the speaker, or only whoever put it down — your call.

Volume ceiling

A maximum volume nobody can exceed, which is what stops the speaker becoming a troll tool.

Five languages

French, English, Spanish, German and Italian, in files that stay editable after escrow.

Dependencies#

ResourceRequiredWhat for
ox_libRequiredInterface and shared helpers
xsoundOptionalUsed automatically if present — never required
ox_targetOptionalOtherwise a marker and the E key

Installation#

  1. Drop SF-Boombox into your resources folder.
  2. Declare the boombox item — see ITEMS.md.
  3. Add the line below to your server.cfg, after ox_lib and your framework.
  4. Authorise your streamers — see the streamer mode section of the README.
server.cfg
ensure ox_lib
ensure SF-Boombox

Configuration#

SettingDefaultWhat it does
Config.MaxDistance30.0Listening range, in metres
Config.MaxVolumeHighest volume a player may set
Config.ControlMode'everyone''everyone' or 'owner' — who may control the speaker
Config.ControlDistanceHow close you must stand to control it
Config.PresetsThe stations offered in the menu
Config.VehicleEnable the vehicle speaker, and whether you must be inside
Config.Audio.preferXSoundfalseForce the built-in engine even when xsound is installed

Commands#

CommandWhat it does
/boomboxPut the speaker down, or pick it back up
/boomboxmenuOpen the menu without targeting
/carmusicThe vehicle speaker
/streamStreamer mode — mutes the music for you alone
/stopallmusic(admin) Stop every speaker on the server
/sf_boombox_myidShow your own licence, to paste into the config

Good to know#

The server validates every link before anything plays: YouTube, or a direct .mp3, .ogg or .wav. Nothing else is accepted, and the client only plays what the server allowed.
Streamer access is granted either by listing licences in config.lua or by ACE permission in server.cfg. The license: prefix is optional and case is ignored — pasting the raw identifier works.
After editing any file, run refresh then restart SF-Boombox. A restart on its own does not re-read the fxmanifest.