Do not skim the instructions. You need to follow every step of the Install Guide to make sure you're installing the script correctly
Dependencies
OR
OR
(optional)
Pre-Requisites
:
- Download the zip and extract the folder
- If needed, rename the folder to from xsound-master to xsound
- Place the folder in your server folder inside [standalone]
1. Add the script to your server resources
We highly recommend puttingjim-djboothin a new folder called[jim-extras]
Then add ensure[jim]after your other scripts have started in yourserver.cfg
Example of load order:
# QBCore & Extra stuff
ensure qb-core
ensure [qb]
ensure [standalone]
ensure [voice]
ensure [defaultmaps]
ensure [vehicles]
# Extra Jim Stuff
ensure [jimextras]
ensure [jim]
2. Adding new locations
You can manually add locations in the config.lua
For example:
{ -- Sisyphus Theater
job = "public", -- "public" makes it so anyone can add music.
enableBooth = true, -- option to disable rather than deleting code
DefaultVolume = 0.15, -- 0.01 is lowest, 1.0 is max
radius = 200, -- The radius of the sound from the booth
coords = vec3(206.9, 1181.04, 226.51), -- Where the booth target is located
soundLoc = vec3(212.32, 1155.87, 227.01), -- Add sound origin location (optional)
},
You can also add them from other scripts with the server-sided event: