So I added this to a file in lua/autorun/server called endround.lua and put this lua code in
hook.Add( "OnRoundSet", "Round Set Example", function( round, winner ) if round == ROUND_ENDING then if winner == TEAM_RUNNER then BroadcastLua('surface.PlaySound("runnerswin.mp3")') elseif winner == TEAM_DEATH then BroadcastLua('surface.PlaySound("deathwins.mp3")') elseif winner == 123 then -- If the winner is the timelimit, it will be the number 123. BroadcastLua('surface.PlaySound("deploy.wav")') end end end )
But when someone wins the round no music plays and i get this error Create Stream Failed error 41 Failed to load sound “runnerswin.mp3”, file probably missing from disk/repository
I tried looking for the sound folder that its supposed to play out of but i cant find it. I am also using a hosting company. Does anyone know where to find this “sound” folder. Thanks!