LabiVila Posted September 9, 2012 Posted September 9, 2012 Hi everyone. Well, while I was creating my first script, I made at last 60% and now I am trying to make a CLOSE Button. I've already created the BUTTON that says: CLOSE but can not manage it. I want to make it when I click on it, to dissapear everything. Can you guys help me please? Thanks, LabiVila
Jaysds1 Posted September 9, 2012 Posted September 9, 2012 (edited) use: guiSetVisible(theWindow,false) this if you're planning to make the window visible again or use: destroyElement(theWindow) to destroy the window Edited September 9, 2012 by Guest My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
Jaysds1 Posted September 9, 2012 Posted September 9, 2012 np My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
Anderl Posted September 9, 2012 Posted September 9, 2012 use: guiSetVisible(theWindow) this if you're planning to make the window visible again or use: destroyElement(theWindow) to destroy the window That's wrong. You forgot second parameter in guiSetVisible. "[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007
Jaysds1 Posted September 9, 2012 Posted September 9, 2012 Thanks for noticing, I'll change now My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
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