• [GMOD 13] How to send sounds from gamemode folder
    3 replies, posted
Hi I have few sounds example in "gamemodename/content/sound/intro.mp3" how do I send to client? I already tried [CODE] resource.AddFile("intro.mp3") resource.AddFile("sound/intro.mp3") resource.AddFile("content/sound/intro.mp3") [/CODE] No one of this works =// I know this from DarkRP they send there the earthshaker.mp3 too
Have you tried [lua]resource.AddFile("gamemodename/content/sound/intro.mp3");[/lua] or [lua]resource.AddFile("gamemodes/gamemodename/content/sound/intro.mp3");[/lua] ? [img]http://www.facepunch.com/fp/ratings/funny2.png[/img]
if your sound is like: '<gamemode name>/content/sound/intro.mp3' you do resource.AddFile("sound/intro.mp3"). Works for me anyway.
Yes it is like your wrote it. I don't get. My gamemode called "test" just for learning. I put devloper 1 and it prints this out [CODE] [resource.AddFile] File test\content\sound\intro.mp3 didn't exist! [resource.AddFile] File content\sound\intro.mp3 didn't exist! [resource.AddFile] File sound\intro.mp3 didn't exist! [resource.AddFile] File intro.mp3 didn't exist! [resource.AddFile] File test\content\sound\intro.mp3 didn't exist! [/CODE] Are you using gmod 13 beta/svn ? [B]EDIT: ok suddenlty I had the Idea to switch gamemode from test to sandbox and then back.. seems like it needed first reload the folder and files.[/B] But where did it go? its not in sound folder of garrysmod. I will restart complete the game and test it again. EDIT2: Ok it works :) Thank you all for your help
Sorry, you need to Log In to post a reply to this thread.