Garry's Mod

Garry's Mod

Vehicle Radio
Jared 26 Apr, 2019 @ 8:48am
Auto-Convert music folders into stations


Download and extract the mp3_to_vradio_lua program[files.dumpsterbabyinc.com]

Optionally download this template[files.dumpsterbabyinc.com] and skip this next part
Create a new folder in: common/GarrysMod/garrysmod/addons -This will be the addon "root" folder Create: "lua/vradio/stations" in the root folder -Here's where the .lua file goes Create: "sound/vehicles_radio" in the root -Where you'll put all your music (.mp3s) Create: "materials/gui/vehicles_radio_icons" in the root -This is for the in-game icon

Once you have moved your music into "sound/vehicles_radio/" click and drag that (vehicles_radio) folder onto "mp3_to_vradio_lua.exe" Wait until the CMD window says "Done, press enter to continue..." Finally move the "vradio_auto.lua" file to "lua/vradio/stations/" -make sure to rename it to something unique

Then to add a in game icon create a .png that's 512 x 512 pixels and copy it to "materials/gui/vehicles_radio_icons/" Next copy that file path into the .lua script using a normal text editor look for something near the top like: ['icon'] = "gui/vehicles_radio_icons/example_icon.png" -- icon

workaround if uploading to workshop fails (having uppercase letters in the .mp3 file path)
https://superuser.com/questions/65302/is-there-a-way-to-batch-rename-files-to-lowercase

Source code: https://files.dumpsterbabyinc.com/srcvradioauto
Last edited by Jared; 15 May, 2019 @ 3:58am
< >
Showing 1-8 of 8 comments
professorparagon 5 Dec, 2019 @ 2:04am 
Can't believe no one's commented this, but THANK YOU. This is the most helpful thing I've found so far.
Jared 5 Dec, 2019 @ 12:36pm 
You're welcome :)
Widukind 12 Feb, 2020 @ 11:03am 
How would I upload this to the steam workshop?
Jared 13 Feb, 2020 @ 8:35pm 
You can use this utility, but how to use it that's another topic, for google:
https://github.com/alatnet/gmpu/releases/download/v2.2/GMPU.v2.2.zip
Jazz Sica 5 Apr, 2020 @ 5:22am 
the "files.dumpsterbabyinc.com" links doesn't work
Jared 5 Apr, 2020 @ 12:07pm 
Thanks for letting me know, my "Yourls" link shortener server was just not on lol oops
Tristanator04 10 Apr, 2020 @ 1:56pm 
I tried that and my station won't appear in the game!
Barricade911 19 May, 2020 @ 2:43pm 
Originally posted by Tabby CatYT:
I tried that and my station won't appear in the game!
yep cuz this addon is garbage i already regret trying it out
< >
Showing 1-8 of 8 comments
Per page: 1530 50