I'm making a music player for a system I'm doing, and I'd like to know if it's possible that the music stops when I press the STOP button and what function would it be?
i think player.Vehicle.Radio = 0
The function that I am using is that of PlaySoundForPlayer, and I have the doubt to know if the sound could be stopped
You can use something like that to stop the sound:
for(local i =0 ; i < 1000;i++) PlaySound( normal params but play an empty sound)
Because you will 'overflow' the sound memory and the sound card will play the empty sound instead afaik.
I tried your recommendation using PlaySound (player.World, 99999, player.Pos) as an example, but it does not work and it continues to play the sound, how does it work?
hello friend that works does not exist only works to play once the audio started can not be stopped until I finish in a while I asked that question and you can not :-\
Quote from: Markhoz on Jun 23, 2019, 06:22 AMI tried your recommendation using PlaySound (player.World, 99999, player.Pos) as an example, but it does not work and it continues to play the sound, how does it work?
Use an existing sound.
It does not work with an existing sound either. but likewise thank you for answering
Quote from: Markhoz on Jun 23, 2019, 06:40 PMIt does not work with an existing sound either. but likewise thank you for answering
friend does not work because that stop sound function does not exist for PlaySound ()
I also asked me how to stop a sound and they told me that I could not :-\ :-\