🖥️Installation
In order to ensure a successful installation, please follow the instructions very carefully.
Dependencies
Installing the resource
Make sure you have the dependencies listed above installed.
Extract the contents of the archive to your resources folder.
Ensure the resource is set to start up with the server.
Framework
If you're using QB, QBX or ESX, your framework will be automatically detected.
For other frameworks, please follow the provided instructions:
Youtube API key
Fill out youtubeApiKey in editable_server/config.lua.
We have detailed insturctions on how to obtain the API key at ️2️⃣ Obtaining Youtube API key. We recommend following those instructions carefully to get your API key.
Using the resource
Use the command /speakers in-game to open the speaker creation menu.
Speaker types
Speaker types grant you access to an unlimited amount of different, customizable speakers, each with their own unique properties, such as different 3D models, audio filters and many more.
A set of predefined speaker types will be automatically generated for your comfort and in order to demonstrate the endless abilities of our resource.
🚩Use the command /speakertypes to create new or edit existing speaker types.
Speaker groups
Speaker groups allow you to connect different speakers to play the same audio.
This allows you to create very immersive surround sound environments, basically granting you your own sandbox audio tool.
🚩Use the command /speakergroup to create or access speaker groups.
All available commands
This command can be used to access the speaker creation menu.
See 1️⃣ Speaker creation for more info.
Vehicles
Speakers can be attached to vehicles and their states saved to your database.
This ensures that speakers remain attached to player-owned vehicles even after storage and respawning.
To enable this feature:
➖ In editable_server/config.lua, set vehicleSaving to true.
➖ In editable_server/framework.lua, make sure getVehicleIdentifier function is filled.
➖ Based on your garage resource, add the vehicle created event
In qb-garages/server/main.lua add this line (like in the screenshot):
CreateThread(function()
Wait(2000)
TriggerEvent('rahe-speakers:server:vehicleSpawnedByServer', source, veh)
end)

Click this link to view the code on Github: qb-garages/server/main.lua
That's it! Speaker states will be saved when attached to database-saved vehicles.
Last updated