I've recently been trying to add some music files to play on my server. Do I need fastdl or something like that? I have no idea how to do it.
This is for other people to hear it too
You can either download the sounds using workshop or FastDL. For FastDL, you need a webhost, though. Here's the functions you need for either: [url]https://wiki.garrysmod.com/page/resource[/url]
[QUOTE=code_gs;51548107]You can either download the sounds using workshop or FastDL. For FastDL, you need a webhost, though. Here's the functions you need for either: [url]https://wiki.garrysmod.com/page/resource[/url][/QUOTE]
Do they need to be workshop or fastdl or can it be done in the server files itself? I added a folder named "music" in my sound folder and then added the music with "resource.AddFile( sound/music/soundfileexample.wav )" not sure if that works though.
[QUOTE=tarduare;51548140]Do they need to be workshop or fastdl or can it be done in the server files itself? I added a folder named "music" in my sound folder and then added the music with "resource.AddFile( sound/music/soundfileexample.wav )" not sure if that works though.[/QUOTE]
You need to make a file in lua/autorun/server. Call it something like fastdl.lua
In that file, put this for each sound in the folder (like you probably already did):
[code] resource.AddFile( sound/music/soundfileexample.wav ) [/code]
That should work. If you have done this, it should work.
Sorry, you need to Log In to post a reply to this thread.