Installation
Move script folder to your server resources
Rename the folder to 'evo_sound_player'
Add
ensure evo_sound_player
to yourserver.cfg
fileOpen
config.lua
in the script folder and changeConfig.resourceName
to your evo_sound resource name, wich can beevo_sound
orxsound
(optional) move
boombox.png
from script folder to your inventory images folder(Qbox/ox_inventory) Add item to
/data/items.lua
:
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
/locales
folder, duplicateen-US.json
file, 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
title
andurl
,thumbnail
is 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
requiredJob
andrequiredGrade
are neccesary, also make sure you dont add duplicatedid
valuesConfig.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
Last updated