Evil-Cod3r Posted February 24, 2012 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 .
drk Posted February 24, 2012 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 )
Evil-Cod3r Posted February 24, 2012 Author 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
drk Posted February 24, 2012 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.
Evil-Cod3r Posted February 24, 2012 Author Posted February 24, 2012 and what i pug if source = yes.png or what ?
drk Posted February 24, 2012 Posted February 24, 2012 if source == imageVariable then Example: if source == button then button is the button variable in my other example.
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