So I don't know where to put the sounds for server because I can't find the sound folder in gmod. Do I have to create one because I already tried that and it doesn't play the sounds when I test them. It says it plays it but I don't hear the music.
make sure you added the files to the fastdl (if you use it) and resource.AddFile() them.
So I would put a lua file in the FastDL like this:
shotgun.lua
--code
resource.AddFile(shotgun.mp3)
Correct?
do you have a link to your fastdl?
Do this
<soundfolder (idr if it is "sound" or "sounds")>/shotgun.mp3
and in server autorun:
resource.AddFile("<soundfolder>/shotgun.mp3");
No. You would have to create a lua file in lua/autorun/server, have the line
[code]resource.AddFile(sound/shotgun.mp3) -- Implying that the sound is just there, not in any subfolders[/code]
You'd also have to put the sound on your FastDL webserver in .bz2 format mirroring the garrysmod directory.
That still doesn't work. This is what I did in the web ftp and made it a bz2 like you said: [url]http://gyazo.com/5d84f8ef430b1c84032e11d3e633a226[/url]
And the sound doesn't play still.
did you ever download the file from the server?
did you add the server autorun file?
Post your sv_downloadurl.
[QUOTE=MeepDarknessM;44963035]did you ever download the file from the server?
did you add the server autorun file?[/QUOTE]
Yes to both.
[editline]31st May 2014[/editline]
[QUOTE=code_gs;44963045]Post your sv_downloadurl.[/QUOTE]
I don't have one. Should I add this?
Yes. Put sv_downloadurl "http://example.com" in your server.cfg.
if you downloaded it from the server then it should play. are you positive you did, since you just said you had no downloadurl
What do I put as the url or do I use example.com? SOrry I'm new at some of this stuff.
[QUOTE=J H4RP;44963087]What do I put as the url or do I use example.com? SOrry I'm new at some of this stuff.[/QUOTE]
Whatever the link to your webhost is; you have to have a webhost to use FastDL.
Sorry, you need to Log In to post a reply to this thread.