Music do not playing on loading screen

I had a working loading screen and I don’t know why, but it does not play music anymore. I tried everything, but its not working… What fivem changed?

This is the code what I have:

<audio id="loading" autoplay loop>
	<source src="music.ogg" type="audio/ogg">
	Your browser does not support the audio element.
</audio>

EDIT: The whole loading screen works in browser

I solved it. FiveM not supports .ogg anymore, so you need .mp3.

So the new code is:

<audio id="loading" autoplay loop>
	<source src="music.mp3" type="audio/mpeg">
	Your browser does not support the audio element.
</audio>

you have a resource where the modification works?

It works with every loading screen script. You just need to place that code in the body tag of the html file. Just make sure you are using mp3 as the solution shows.

My loading screen works when i open it up with index.html in the browser. But when i join my server, the music doesn’t play.

same problem