Timic Posted September 11, 2010 Share Posted September 11, 2010 (edited) Hi, I'm here because I want little help. I had troubles! function PlayMyMusic ( ) local sound = playSound("sound.mp3",false) setSoundVolume(sound, 3.0) end) addEvent("playMyMusic",true) addEventHandler("playMyMusic", getRootElement( ), function( ) addCommandHandler("disco", playMyMusic) I hope you'll help me ! Edited June 17, 2011 by Guest Link to comment
BinSlayer1 Posted September 11, 2010 Share Posted September 11, 2010 (edited) Hi, Im Here Because I Want Little Help. I Had In Troubles! function PlayMyMusic ( ) local sound = playSound("sound.mp3",false) setSoundVolume(sound, 3.0) end) addEvent("playMyMusic",true) addEventHandler("playMyMusic", getRootElement( ), function( ) addCommandHandler("disco", playMyMusic) I Hope You Guys Help Me ! function PlayMyMusic ( ) local sound = playSound("sound.mp3",false) setSoundVolume(sound, 3.0) end addCommandHandler("disco", PlayMyMusic) If all you want is to start the song when you type /disco, you do not need an event this should work but make sure you're running it clientside Edited September 11, 2010 by Guest Link to comment
Timic Posted September 12, 2010 Author Share Posted September 12, 2010 Thank You! Now Works Perfectly ! 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