brocky Posted October 12, 2015 Share Posted October 12, 2015 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
brocky Posted October 13, 2015 Author Share Posted October 13, 2015 Ok thanks, I am gonna try it, Any errors and I will edit this POST 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