abdalbaset Posted February 3, 2014 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?
Anubhav Posted February 3, 2014 Posted February 3, 2014 Ye, use playSound See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
WASSIm. Posted February 3, 2014 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 )
myonlake Posted February 6, 2014 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. If I helped you, please click the like button on the right Thanks!
abdalbaset Posted February 6, 2014 Author 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
myonlake Posted February 6, 2014 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. If I helped you, please click the like button on the right Thanks!
Deepu Posted February 8, 2014 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 WANT SCRIPTS? I SELL LIKE AN ANIMATED CUSTOMISED GUI FOR 5USD AND AN RPG GAMEMODE FOR 30USD ONLY. IF YOU NEED SPECIAL SCRIPTS THEN I SELL EACH FOR 5 USD.
Castillo Posted February 8, 2014 Posted February 8, 2014 You wrote playSound wrong, Lua is case sensitive. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
abdalbaset Posted February 9, 2014 Author Posted February 9, 2014 Thank guys its working and thanks for the wiki
myonlake Posted February 9, 2014 Posted February 9, 2014 You're welcome. If I helped you, please click the like button on the right Thanks!
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