Jump to content

playSound3D won't work


Recommended Posts

Hey! I gotta problem with playSound3D. Music just does not play.. What's wrong?

Sounds.lua :

function onResourceStart() 
    local sound = playSound3D("sounds/siren.ogg", 2491.8510748188, -1667.180541992, 13.34375, true) 
    setSoundVolume(sound, 1.0) -- set the sound volume to 100% 
    setSoundMaxDistance( sound, 100 )    
end 
addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), onResourceStart) 

meta.xml :

     <!-- Spesal saund systam --> 
    <script src="sounds.lua" type="client" /> 
    <file src="sounds/siren.ogg" />  

Any suggestions?

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