Fintagenewb Posted February 19, 2014 Share 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 Link to comment
Castillo Posted February 19, 2014 Share Posted February 19, 2014 MTA has functions to play music, yes. Link to comment
Fintagenewb Posted February 19, 2014 Author Share Posted February 19, 2014 Ok thanks for the reply, but how do i play it when the login screen appears? Link to comment
Castillo Posted February 19, 2014 Share Posted February 19, 2014 That depends on your script completely. Link to comment
Fintagenewb Posted February 19, 2014 Author Share Posted February 19, 2014 Hmm, there's nothing on the google's so could you help? What script is the one whats needed? Link to comment
Mr_Moose Posted February 26, 2014 Share 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. 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