[QBCore/ESX] in Game Music (soundtrack)

Sinor In-Game Music

This resource automatically plays music when a player loads into the server, with options for random or sequential playback. It supports both QBCore and ESX frameworks and allows full configuration

Features

  • Automatic music playback when a player logs in.
  • Continuous playlist cycling with options for random or ordered playback.
  • Configurable volume and playback settings.
  • Manual control with in-game commands.

Dependencies

  • Requires QBCore or ESX framework.

Config

Config = {}

Config.Framework = "QBCore" -- Choose either 'ESX' or 'QBCore'
Config.PlayMusicOnPlayerLoaded = true -- Set to true to play music when the player loads
Config.DefaultVolume = 0.5 -- Volume level between 0.1 and 1.0
Config.PlayMusicMode = "random" -- Options: 'random' or 'order'
Config.CommandToPlay = "playmusic" -- Command to manually start the music (can still be used if needed)
Config.CommandToStop = "stopmusic" -- Command to stop the music
Config.DebugPrint = true -- Set to true to enable debug printing, false to disable

Config.MusicList = {
    "nui://Sinor-InGameMusic/html/song1.mp3",
    "nui://Sinor-InGameMusic/html/song2.mp3",
    -- Add more songs as needed
}

Preview

watch me

tebex

HERE

Github

HERE

Other Scripts

AdvancedZombieSystem
RobberyCreator
SafeZone
LootPeds
RadiationZones
ZombieSystem
Shop
WeatherSync
PhoneStoreRobbery
CamperHousing
LootBags

Support:
you can join my discord for any support ! Sinor System

Code is accessible Yes
Subscription-based No
Lines (approximately) N/A
Requirements N/A
Support Yes
6 Likes

Incredible work

Maybe you could add an autoplay option in localized areas defined by coordinates or range

nice work :100::100:

1 Like

Bro this is great mate, I’ve always looking for something like MTASA’s function and u did it! Js u are amazing.

nice ydk :joy:

still working on it :blush:

thanks :heart_eyes:

saha m3jona :rofl:

Hello beautiful script , can you add that a song is heard only in the certain coordinates?

Yes maybe next update brother or ill create another script like it

1 Like

very good

1 Like