Trouble with TTT Round music.

I’m having some trouble with this script:


resource.AddFile("sound/ttt/iswin.mp3")
resource.AddFile("sound/ttt/tswin.mp3")

// End of Round Sound NOT MUSIC
local function PlaySound(wintype)
	if wintype == WIN_INNOCENT then
		BroadcastLua('surface.PlaySound("sound/ttt/iswin.mp3")')
	else
		BroadcastLua('surface.PlaySound("sound/ttt/tswin.mp3")')
	end
end
hook.Add("TTTEndRound", "PlaySound", PlaySound)

I can’t seem to get it to work. I have added this to LUA/SERVER/Myfile(TTT_Hook.lua) And it’s not working. The sounds are not playing at the round start. They are downloading to clients, but refuse to play. If there is anyone who knows what I need to do, Please give instruction to me. Thank you.


(User was banned for this post ("Wrong section" - Gran PC))

In the BroadcastLua part remove the sound/ part of the directory structure.

ie change.
BroadcastLua(‘surface.PlaySound(“sound/ttt/iswin.mp3”)’)
to
BroadcastLua(‘surface.PlaySound(“ttt/iswin.mp3”)’)

Is there any way I can have more then one song? I.E Just a random song plays at the end of the round. Thanks for your help btw