Jump to content

playSound


Blinker.

Recommended Posts

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 

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

-_-

Link to comment

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