Configuration

Every config.lua option, grouped and explained in plain tables.

All settings live in config.lua, which stays open and editable after escrow. Change a value, save, restart the resource.

Opening the UI

OptionDefaultDescription
Config.OpenCommand'autoplay'Chat command that opens the UI (/autoplay).
Config.OpenKey'F5'Default keybind. Each player can rebind it in the FiveM key bindings menu.

Control

OptionDefaultDescription
Config.ControlScope'driver''driver' lets only the driver (seat -1) control playback. 'occupants' lets anyone seated in the vehicle control it.

Audibility and proximity (metres)

OptionDefaultDescription
Config.MaxDistance25.0Beyond this, outside listeners hear nothing.
Config.MinDistance2.0Within this, volume is at full.
Config.InsideBoost1.0Volume multiplier when you are inside the car (1.0 is full).
Config.NearField3.5Metres over which volume eases from full to muffled as you step out, so exiting never lurches.

Cabin muffle (volume part)

OptionDefaultDescription
Config.MuffleClosed0.65Outside listener volume for a sealed cabin.
Config.MuffleOpen0.90Outside listener volume when a door is open, roof is down, or a window is out.
Config.DoorOpenRatio0.10Door angle ratio above which a door counts as open.

3D spatial audio (HRTF)

OptionDefaultDescription
Config.Spatial3DtrueHRTF left / right / front / back positioning. false is legacy mono.
Config.Muffle3DtrueReal low pass filter on top of the volume muffle above.
Config.MuffleCutoffOpen22000Low pass cutoff in Hz when open or inside (effectively no filtering).
Config.MuffleCutoffClosed520Low pass cutoff in Hz when sealed and distant (bassy, muffled). Lower is more muffled.

Tone, bass, and EQ are a per player in game equalizer (Settings, then Equalizer), not a config value. The default preset "Car System" gives the bass forward feel.

Voice ducking

OptionDefaultDescription
Config.VoiceDucktrueMaster enable.
Config.VoiceDuckRadius6.0A talker within this many metres dips your music.
Config.VoiceDuckAmount0.15Music volume while ducked (0.15 is 15 percent, 0.0 is full mute).
Config.VoiceDuckHold300Milliseconds to stay ducked after talking stops (prevents pumping).

Sync and performance

OptionDefaultDescription
Config.RenderInterval100Milliseconds between attenuation and position recalcs (10 per second).
Config.ScanRadius60.0Only vehicles within this radius are considered for audio.
Config.MaxConcurrent6Maximum simultaneous car streams rendered on one client.
Config.ActionCooldown750Minimum milliseconds between control actions per player (anti spam, server enforced).

Sources and security

OptionDefaultDescription
Config.AllowYouTubetrueAllow YouTube links (via the official IFrame API).
Config.AllowFreeUrltrueAllow players to type their own URL (subject to the checks below).
Config.AllowDirectStreamsfalseAllow raw stream URLs (mp3, ogg, and so on). Off means YouTube only.
Config.RequireHttpstrueRequire https:// for direct streams.
Config.AllowedExtensionsmp3, ogg, ...Permitted file types for direct streams.
Config.AllowedHosts{} (any)Whitelist of hosts for direct streams.
Config.MaxUrlLength512Maximum accepted URL length.

If you enable AllowDirectStreams, lock AllowedHosts down to CDNs you trust. That blocks NSFW and SSRF abuse from players pasting arbitrary URLs.

Playlists and limits

OptionDefaultDescription
Config.MaxPlaylists30Playlists per player.
Config.MaxTracksPerPlaylist100Tracks per playlist.
Config.PlaylistNameMaxLen40Maximum playlist name length.

Misc

OptionDefaultDescription
Config.AutoResumefalsetrue auto plays the last track when the UI opens in a quiet car. false shows a Resume option (no surprise audio).
Config.UseOxLibNotifytrueUse ox_lib notifications if present, else chat.
Config.Websiteyour URLShown in the UI About section.
Config.VersionCheckfalseOptional console update notice. Tebex and Cfx already notify owners, so it is off by default.
Config.VersionUrlyour URLWhere the checker fetches { "version": "x" } if enabled.