Help - InteractSound

i have this code [code]

var audioPlayer = null; // Listen for NUI Messages. window.addEventListener('message', function(event) { // Check for playSound transaction if (event.data.transactionType == "playSound") {
              if (audioPlayer != null) {
                audioPlayer.pause();
              }
              audioPlayer = new Audio("./sounds/" + event.data.transactionFile + ".ogg");
              audioPlayer.volume = event.data.transactionVolume;
              audioPlayer.play();
            }
        });
    </script>
</head>
[/code]

and have this error:

https://scr.hu/mj9MGdP

Interesting man, have you double checked everything?

I have one resources interactSound and no have idea why…

I used this resource to play Seatbelt warnning.

The answer is there is a pause() :smiley:
Do you know whats behind Google’s shortlink?

Should be if (audioPlayer !== null) {

Music is not playing at all any way to fix??