Jump to content

[HELP]Blocking buttons


brocky

Recommended Posts

Hello, I need help once again with "blocking buttons". Here is the example of the code.

  
  local button1 = guiCreateButton(13, 54, 140, 29, "Buy Vehicle", false, window1) 
       local button2 = guiCreateButton(158, 55, 77, 28, "Sell Vehicle", false, window1) 
  

Now what I want to know is that, How can i block buttons? example is . If you click "button1" then you can click "button2" else you can't click on "button2" and it will not work unless "button1" was true.

More explanation in simple words is that if you click on "Buy Weapon" button, then you can click on "Sell Vehicle" else you can't click on "Sell Vehicle" if you didn't click "Buy Vehicle" which means you don't have any Vehicle to sell, so thats why buton "Sell Vehicle" is blocked and unblock it when "Buy Vehicle" is true.

"How can I block Buttons"?

Link to comment

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...