Jump to content

GUI Editor


Twist

Recommended Posts

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

Link to comment

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