[LT]TripleX Posted June 8, 2012 Share Posted June 8, 2012 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
Vision Posted June 8, 2012 Share Posted June 8, 2012 Your meta.xml is wrong, please read this: https://wiki.multitheftauto.com/wiki/Meta.xml Link to comment
[LT]TripleX Posted June 8, 2012 Author Share Posted June 8, 2012 Your meta.xml is wrong, please read this: https://wiki.multitheftauto.com/wiki/Meta.xml Problem solved, thanks. ; ) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now