Jump to content

Não repetir sound.


Recommended Posts

Boa tarde, estou com um problema, tenho meu Client-Side, que toca o som e fica no looping, oq devo mudar para tocar apenas 1 vez? e apenas tocar para o player, não para os outros escutarem?

 

local vehiclesSirene = {}

addEvent("alertsamu",true)
addEventHandler("alertsamu",root,
function()
    vehiclesSirene[source] = playSound3D( "wakeup.mp3", 0,0,0, true ) 
    setSoundMaxDistance(vehiclesSirene[source], 50 )
    setSoundVolume (vehiclesSirene[source], 1)
    attachElements (vehiclesSirene[source], source, 0, 0, 0 )
end)


 

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...