How do I stop sound.Play?




	sound.Add( {
	name = "hl2player",
	channel = CHAN_STATIC,
	volume = 1.0,
	level = 80,
	pitch = { 95, 110 },
	sound = "music/HL1_song10.mp3"
	} )

	sound.Play( "hl2player", self:GetPos(), 100, 100, 1 )



type stopsound in console

I could do that, but I want to stop this particular sound only.

Use http://wiki.garrysmod.com/page/sound/PlayFile/ instead.

I don’t think that function is working anymore.


attempt to call field 'PlayFile' (a nil value)

EDIT: Nevermind, it’s clientside.