JeViCo Posted October 8, 2017 Share Posted October 8, 2017 (edited) My code at the end contains button variables but it defines in 2 cases: 1 - as button1 variable 2 - creates button button1 = guiCreateButton(747, 286, 102, 40, "", false) button2 = guiCreateButton(498, 286, 102, 40, "", false) how can i replace it or prevent creation? i just want make button open and close on pressed key. 1 button changes player skin/2 gives player a car Edited October 8, 2017 by JeViCo Link to comment
WorthlessCynomys Posted October 8, 2017 Share Posted October 8, 2017 First of all. Those guis are absolute, so on other screens they may not be on the display. On the other hand... What is your question, it is too messy. Link to comment
JeViCo Posted October 8, 2017 Author Share Posted October 8, 2017 (edited) i just want to show and hide button after it clicked it'd appear with dx window(binded on key) and hide with dx window(also on pressed button) i have function to open/close dx window i just need button/// thing Edited October 8, 2017 by JeViCo Link to comment
WorthlessCynomys Posted October 8, 2017 Share Posted October 8, 2017 Well... you can make a gui button, and there's an event onClientGUIClick to detect clicks on GUI buttons. If you want to make a dx button, you have to draw the dx and then detect the click with onClientClick. Everything that happens after the detection of the click, is on you. Link to comment
JeViCo Posted October 8, 2017 Author Share Posted October 8, 2017 46 minutes ago, Randomly said: Well... you can make a gui button, and there's an event onClientGUIClick to detect clicks on GUI buttons. If you want to make a dx button, you have to draw the dx and then detect the click with onClientClick. Everything that happens after the detection of the click, is on you. ok, i'l try it 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