abdalbaset Posted February 3, 2014 Share Posted February 3, 2014 Is it possible to make sounds fail or song links and put it in my server to make all player hear it? Link to comment
WASSIm. Posted February 3, 2014 Share Posted February 3, 2014 yeah you can use playSound3D or playSound EXMPLE playSound3D addEventHandler( 'onClientResourceStart', resourceRoot, function( ) local uSound = playSound3D( 'http://193.34.51.25:80', 2498, -1659, 12 ) setSoundMaxDistance( uSound, 100 ) end ) Link to comment
abdalbaset Posted February 6, 2014 Author Share Posted February 6, 2014 i try it its not working Link to comment
myonlake Posted February 6, 2014 Share Posted February 6, 2014 If you want everybody to hear a song, you will have to use playSound function. If you want it to play locally at some location, use playSound3D. Link to comment
abdalbaset Posted February 6, 2014 Author Share Posted February 6, 2014 its now working but i want one more thing i want to add more than 1 song whene i use commend its go to the next song i didnt want to do that with gui becuse its kind of hard Link to comment
myonlake Posted February 6, 2014 Share Posted February 6, 2014 Initialize an array with the song paths and push the array key until it gets to the end of the array - then start from the beginning of the array and repeat the same thing. Make sure to use destroyElement or stopSound each time you skip a song, this way you won't get multiple sounds playing simultaneously. Link to comment
Deepu Posted February 8, 2014 Share Posted February 8, 2014 look, if you wanna play sound and everyone wanna hear it, then use this as an example function song () sound = playsound("link of website" or "song in the same resource as your script is in") setSoundMaxDistance(sound, 400) end check it Link to comment
Castillo Posted February 8, 2014 Share Posted February 8, 2014 You wrote playSound wrong, Lua is case sensitive. Link to comment
abdalbaset Posted February 9, 2014 Author Share Posted February 9, 2014 Thank guys its working and thanks for the wiki 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