Quick lua help

I’m making a gamemode and i want everyone to have background music when they play, and i want it to repeat. Can someone please post a simple code that lets me play a .mp3 file and it repeats.

And the duration of the mp3 should help you.

Get the duration of the .mp3 manually.

Or you could add regions to the sound.

Or you could use **[G.SoundDuration


Or you could realize SoundDuration isn’t meant for .mp3s.

[editline]28th January 2011[/editline]

It’s meant for .wav only.

or u could check if its playing using **[CSoundPatch.IsPlaying


Or you could covert the .mp3 to .wav! :L