FromMars Posted October 13, 2017 Share Posted October 13, 2017 How can I add music to the login panel. My english :~, I apologize for this. Link to comment
kieran Posted October 13, 2017 Share Posted October 13, 2017 Okay, I have been tackling this sort of thing for around a week now, do you want the music just playing once or multiple times? Link to comment
FromMars Posted October 14, 2017 Author Share Posted October 14, 2017 Only the person who entered the game. One or two does not matter mate. Only the login-panel. Link to comment
GodOfPenguins Posted October 14, 2017 Share Posted October 14, 2017 function loginPanel() sound = playSound("sounds/music.mp3", true) -- client code of login panel end addEventHandler("onClientResourceStart", getRootElement(), loginPanel) -- function that triggers upon successful authorization function destroyLoginPanel() stopSound(sound) -- cliend code of success login end https://wiki.multitheftauto.com/wiki/PlaySound https://wiki.multitheftauto.com/wiki/StopSound Link to comment
FromMars Posted October 14, 2017 Author Share Posted October 14, 2017 Thank you very much. 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