Sign in to follow this  
Blinker.

playSound

Recommended Posts

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

Share this post


Link to post

well so , how to make it work , i mean how to get a new api .. i have 0 knowledge in apis

Share this post


Link to post

That's from the Youtube to MP3 player that is in the community. The API he used is down so you no longer can use it.

Share this post


Link to post
so where / how can i get a new api ?

I don't think that there is any fast converting Youtube to MP3 API.

Share this post


Link to post

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

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

Share this post


Link to post

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 

Share this post


Link to post
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 

-_-

Share this post


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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.