CreateAudioOutputAttached broken
dGxxxx opened this issue · comments
Dan commented
Alt.OnPlayerEnterVehicle += (vehicle, seat) =>
{
var outA = Alt.CreateAudioOutputAttached(Alt.Hash("radio"), vehicle);
var webview = Alt.CreateWebView("https://www.youtube.com/embed/IOoyQFsjkW4?autoplay=1&fs=0&controls=0&disablekb=1%22%20width=%22560%22%20height=%22315%22%20title=%22Monoir%20&%20Osaka%20feat.%20Brianna%20-%20The%20Violin%20Song%20(Official%20Video)");
webview.Visible = true;
webview.Focused = true;
Alt.ShowCursor(true);
webview.AddOutput(outA);
outA.Volume = 1;
};
This code doesn't play any audio on the vehicle. Tested with OutputFrontend, and OutputWorld and those 2 work like they should.
Tried this code on the JS module, and CreateAudioOutputAttached is working like it should.
Tested on latest RC version.
alt.on('enteredVehicle', (vehicle, seat) => {
var outA = new alt.AudioOutputAttached(vehicle, alt.hash("radio"));
var webview = new alt.WebView("https://www.youtube.com/embed/IOoyQFsjkW4?autoplay=1&fs=0&controls=0&disablekb=1%22%20width=%22560%22%20height=%22315%22%20title=%22Monoir%20&%20Osaka%20feat.%20Brianna%20-%20The%20Violin%20Song%20(Official%20Video)");
webview.isVisible = true;
webview.focused = true;
alt.showCursor(true);
webview.addOutput(outA);
outA.volume = 1;
})
Dan commented
It's fixed.