Hey everyone - sorry to bother again.
I cannot wrap my head around why this wont play any sounds:
[lua]
resource.AddFile( "sound/thump1.wav" ) -- This file is placed in "mygamemode/content/sound" and is downloaded uppon joining the server.
util.PrecacheSound( "tump1.wav" ) -- Doesn't work with "sound/thump1.wav" either.
hook.Add( "ShowSpare1" , "dev:ShowSpare1" , function( ply )
ply:EmitSound( "tump1.wav" ) -- This doesn't work.
ply:EmitSound( "garrysmod/save_load1.wav" ) -- This works.
end )
[/lua]
I have tried other things like EmitSound( "thump1.wav", ply:GetPos() ) without any luck. I've also tried a simple sound.Play() - still nothing.
Placing the sound files in "garrysmod/sounds" didn't help either.
I'm desperate to know why in the world this wont play my sounds.
I get this console error:
[CODE]Failed to load sound "sound\tump1.wav", file probably missing from disk/repository
[/CODE]
Any help is much appreciated :D
- FP
You do addfile on thump1, thump2 then you precache tump1 (not thump).
:snip: - I'm the biggest idiot on planet earth.
Sorry, you need to Log In to post a reply to this thread.