Installation
Move script folder to your server resources
Rename the folder to 'evo_sound_player'
Add
ensure evo_sound_playerto yourserver.cfgfileOpen
config.luain the script folder and changeConfig.resourceNameto your evo_sound resource name, wich can beevo_soundorxsound(optional) move
boombox.pngfrom script folder to your inventory images folder(Qbox/ox_inventory) Add item to
/data/items.lua:['boombox'] = { label = 'Boombox', weight = 1, description = 'Boombox' },
Initial config
Script comes ready to be used but there are a few config values you should check:
Config.locale: should be set to your server language. If the locale file for your server language does not exist just go to
/localesfolder, duplicateen-US.jsonfile, rename it to whatever your locale is (eg.fr-FR.json), translate the file itself (just translate the values, not the keys) and change Config.locale to whatever you renamed it before (without the .json extension)Config.audioStreams: this contains the radio availables on the UI, modify it to your needs, just make sure every new item you add contains at least
titleandurl,thumbnailis optionalConfig.radio.modelOverrides: all the vehicles inside this list will override default distance and baseVolume, you can add here as many vehicles as you want, by defualt we added pbus2, to add a new vehicle just duplicate that line and change the values to whatever you want
Config.boombox.itemData: update it to whatever you want.
Config.zones.list: this list contains the music zones, we've added a zone by default so you can use it to add your zones easily. All fields except
requiredJobandrequiredGradeare neccesary, also make sure you dont add duplicatedidvaluesConfig.zones.command & Config.boombox.command: change this to whatever you want for the zone and boombox command, boombox command can be disabled by setting its value to
nil
You should be ready to go after that, if you want to learn more about other config values, read Config