Fintagenewb Posted February 19, 2014 Posted February 19, 2014 Yes, title explains it. but i was on this MTA DAY-Z server and when i was on the login screen, last resort by papa roach came on, It was awesome only for a few seconds though... I was wondering how did they add this music? can anyone help? or know how? -Thanks
Fintagenewb Posted February 19, 2014 Author Posted February 19, 2014 Ok thanks for the reply, but how do i play it when the login screen appears?
Fintagenewb Posted February 19, 2014 Author Posted February 19, 2014 Hmm, there's nothing on the google's so could you help? What script is the one whats needed?
Mr_Moose Posted February 26, 2014 Posted February 26, 2014 Sounds can easily be played on the client by using the playSound function: element playSound ( string soundPath, [ bool looped = false ] ) https://wiki.multitheftauto.com/wiki/PlaySound Set the soundPath to a sound file url or include the sound in the resource, I would recommend the first alternative. To stop the sound you can use destroyElement() with the sound element as argument.
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