This is a very simple resource to modify vehicle radio behavior, created because so many people seem to ask for it and have problems implementing it themselves.
This resource offers three configurable options surrounding the in-car radio:
- Completely disable the radio in all vehicles
- Set the radio station to "Off" by default when entering a vehicle
- Force a specific radio station when entering a vehicle
- Download the resource from this repo
- Unzip the file and drop fivem-noradio in your server's resources folder
- Modify the fivem-noradio/config.lua file to meet your server's requirements
- Add
ensure fivem-noradio
to your server.cfg file - Refresh & start the resource or restart your entire server if that's your kinda thing
The config file only has 3 options, which are fully commented. You should be able to figure it out:
Config = {
DefaultOff = false, -- Set to TRUE to set the radio to "Off" when entering a vehicle
DisableRadio = false, -- Set to TRUE to completely disable the radio. This setting overrides all other options
ForcedStation = "RADIO_03_HIPHOP_NEW", -- Set a specific station name or leave empty ("") to disable. Will be overridden if either option above is set to "true"
-- List of radio station names: https://docs.fivem.net/docs/game-references/radiostations/
}
For reference, a complete listing of all radio station names can be found here