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?