Jump to content

button variables problem


JeViCo

Recommended Posts

Posted (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 by JeViCo
Posted (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 by JeViCo
Posted
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

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