HugoS# Posted October 14, 2013 Share Posted October 14, 2013 Hello guys, I've done a little script that it didn't work i don't know why ! any help ? local streamURL = "http://www.181.fm/winamp.pls?station=181-power&style=mp3&description=Power%20181%20(Top%2040)&file=181-power.pls" local radius = 350.0 local volume = 1.0 function clubMusic4 () local sound = playSound3D(streamURL, 2252.57520, 554.66547, 11.89701, true) setSoundVolume(sound, volume) setSoundMaxDistance(sound, radius) end addEventHandler ( "onResourceStart", root, clubMusic4 ) I've make it client side ! Link to comment
myonlake Posted October 14, 2013 Share Posted October 14, 2013 Use 'onClientResourceStart' instead of 'onResourceStart'. And I also suggest changing 'root' to 'resourceRoot' or otherwise the song will keep starting every time you start a resource. Link to comment
HugoS# Posted October 14, 2013 Author Share Posted October 14, 2013 Oh thnx men It's really working ! 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