Evil-Cod3r Posted February 24, 2012 Share Posted February 24, 2012 Hi if i Made a Window and Button Name [show Your Money ] how if i Select that Button i want show Small windoe Like this [Are You Sure Want To Show Your Money ] ? how to do that give me the functions and events so i can make it thank you . Link to comment
drk Posted February 24, 2012 Share Posted February 24, 2012 gui = guiCreateWindow(...) button = guiCreateButton(...) gui_money = guiCreateWindow(...) guiSetVisible(gui,false) guiSetVisible(gui_money,false) addEventHandler('onClientGUIClick',root, function() if source == button then guiSetVisible(gui_money,true) end end ) Link to comment
Evil-Cod3r Posted February 24, 2012 Author Share Posted February 24, 2012 and i have images Yes.png and no.png how to replace the buttons with images yes show his money no hide the window just this Link to comment
drk Posted February 24, 2012 Share Posted February 24, 2012 no hide the window just this I don't understand this... For replacing buttons with images only change guiCreateButton to guiCreateStaticImage lol. onClientGUIClick works with all gui elements. Link to comment
Evil-Cod3r Posted February 24, 2012 Author Share Posted February 24, 2012 and what i pug if source = yes.png or what ? Link to comment
drk Posted February 24, 2012 Share Posted February 24, 2012 if source == imageVariable then Example: if source == button then button is the button variable in my other example. Link to comment
Evil-Cod3r Posted February 24, 2012 Author Share Posted February 24, 2012 Oh Thanks Man For That 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