Jump to content

playSound


Blinker.

Recommended Posts

Posted

I guess the website is not working, and failing to convert the video to audio only.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Try registering at google, i dont remember web but they offer something for getting api's for thei apps.

"El conocimiento jamás debe detenerse, por que es lo único que nos salvará cuando no nos quede más".

Att: -|TG|-Mister[Q]<.

Posted

you have to download the arquiro and use it in mp3 format

playSound ( "http://yoursite.com/files/track.mp3" ) 
-- or 
playSound ( "files/track.mp3" ) 

 DUyJ810.gif

Posted

my script example playSound3D and of file

sound = playSound3D("http://servzika.net/Alesso.mp3", 1261.08752, -2018.86438, 59.388856, true) 
  
setSoundMaxDistance(sound, 40) 
setSoundMinDistance(sound, 1) 
setSoundVolume(sound, 100) 

example playSound in WIKI

function wasted (killer, weapon, bodypart)  
    local sound = playSound("sounds/wasted.mp3") --Play wasted.mp3 from the sounds folder 
    setSoundVolume(sound, 0.5) -- set the sound volume to 50% 
end 
  
addEventHandler("onClientPlayerWasted", getLocalPlayer(), wasted) --add the event handler 

 DUyJ810.gif

Posted
my script example playSound3D and of file
sound = playSound3D("http://servzika.net/Alesso.mp3", 1261.08752, -2018.86438, 59.388856, true) 
  
setSoundMaxDistance(sound, 40) 
setSoundMinDistance(sound, 1) 
setSoundVolume(sound, 100) 

example playSound in WIKI

function wasted (killer, weapon, bodypart)  
    local sound = playSound("sounds/wasted.mp3") --Play wasted.mp3 from the sounds folder 
    setSoundVolume(sound, 0.5) -- set the sound volume to 50% 
end 
  
addEventHandler("onClientPlayerWasted", getLocalPlayer(), wasted) --add the event handler 

-_-

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...