Hey Guys!
I have a question.
I did a GUI with the GUI Editor tonight and ive got this code now :
GUIEditor = {
button = {},
window = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(0, 270, 242, 302, "FaF User Panel", false)
guiSetAlpha(GUIEditor.window[1], 0.66)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF47FF00")
GUIEditor.button[1] = guiCreateButton(10, 42, 74, 30, "Music", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[1], "default-bold-small")
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFF0000")
GUIEditor.button[2] = guiCreateButton(114, 46, 74, 26, "Nitro", false, GUIEditor.window[1])
guiSetFont(GUIEditor.button[2], "default-bold-small")
guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF0041FF")
end
)
So now is my question how do i bind the" Music" button with my command /music to open a music panel and the Same thing with "Nitro".
Hope you can help me !
-Twist