• G.Sound
    3 replies, posted
Just wondering, is this how you play sounds properly? I have the sounds folder in my gamemode folder itself. wondering if this would work? Anything I need to change for it to work? [LUA] util.PrecacheSound("sounds/music/Brains! - Voltaire.wav") function GM:PlayerInitialSpawn( ply ) local music1 = Sound("Brains! - Voltaire.wav") print(music1) end [/LUA] Also, whats a better way to play this music serverside?
I'm pretty sure it's: ply:EmitSound(music1, 100, 100) Link: [URL="http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index826d.html"]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index826d.html[/URL]
Fixed, thanks. [editline]16th July 2012[/editline] . [editline]16th July 2012[/editline] .
Make a folder named content in your gamemode folder then put the sounds in that folder.
Sorry, you need to Log In to post a reply to this thread.