Music
The Music app provides a local audio player, Bluetooth control for external speakers, and radio station streaming.
Music player
- Browse and play tracks added by the server (configured via music_bluetooth.lua or a track list)
- Play / pause, next / previous track controls
- Seek bar with elapsed and total time
- Volume slider
- Shuffle and repeat modes
- Now playing widget visible from any app (mini player)
- Track artwork display
Bluetooth audio
The music_bluetooth.lua server file enables Bluetooth-style audio output to in-game entities (vehicles, speakers, etc.):
- Connect the phone to a nearby Bluetooth speaker entity
- Music plays spatially from the speaker's position (other players nearby hear it)
- Disconnect / reconnect from the Bluetooth menu in Settings
- Volume control separate from headphone playback
Radio
The Radio tab lets players tune into live audio streams. Stations are configured server-side:
lua
-- server/custom/music.lua (example station list)
QuanticMusic = {
stations = {
{ name = "Los Santos FM", url = "https://stream.example.com/lsfm", frequency = "98.5" },
{ name = "Radio Mirror Park", url = "https://stream.example.com/rmp", frequency = "107.7" },
},
}Stream URLs must return an audio content-type (mp3, ogg, aac). HTTPS is required — HTTP streams are blocked by browser security policy in the NUI.