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