# TB SoundSpawn
TB SoundSpawn is a simple FiveM resource that lets players change a vehicle's sound profile from an in-game menu.
## What it does
- Opens a menu while inside a vehicle
- Lets players choose a sound option, including a Default reset option
- Supports admin-created custom sounds
- Saves sound choices to [data/sounds.json](data/sounds.json)
## Commands
- `/sounds` - open the menu
- `/soundadmin` - open the menu with admin controls
## Install
1. Place the resource in your server's `resources` folder.
2. Add this to your server config:
```cfg
ensure tb_soundspawn
```
3. Restart the server.
## Config
Main settings are in [config.lua](config.lua), including:
- command names
- default sound value
- admin license checks
- storage file path
## Files
- [client/main.lua](client/main.lua) - menu and vehicle sound handling
- [server/main.lua](server/main.lua) - admin checks, storage, and events
- [html/app.js](html/app.js) - UI behavior