Jump to content

Question


Evil-Cod3r

Recommended Posts

Posted

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 .

Posted
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 
) 

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...