Jump to content

[HELP] Make me a GUI


Ursidae

Recommended Posts

Hey I have the code, can you make me a working gui with buttons?

Here is the code;

GUIEditor = { 
    checkbox = {}, 
    button = {}, 
    edit = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
    -- This is Login button -- 
        GUIEditor.button[1] = guiCreateButton(562, 662, 180, 43, "Login", false) 
        guiSetAlpha(GUIEditor.button[1], 0.00) 
  
    -- register button -- 
        GUIEditor.button[2] = guiCreateButton(562, 719, 185, 41, "Register", false) 
        guiSetAlpha(GUIEditor.button[2], 0.00) 
  
    -- Check box for 'Remember me' -- 
        GUIEditor.checkbox[1] = guiCreateCheckBox(659, 611, 21, 19, "", true, false) 
        guiSetAlpha(GUIEditor.checkbox[1], 0.00) 
  
-- This is where you type your username -- 
        GUIEditor.edit[1] = guiCreateEdit(536, 476, 226, 42, "", false) 
  
-- This is where you type your password -- 
        GUIEditor.edit[2] = guiCreateEdit(536, 555, 226, 42, "", false)     
    end 
) 
  
addEventHandler("onClientRender", root, 
    function() 
        dxDrawImage(1, 3, 1920, 1200, ":guieditor/images/login.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) 
        dxDrawImage(291, 139, 0, 0, ":guieditor/images/login.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) 
    end 
) 

Link to comment
Can you help me to make it?

Of course I can help, but we're not going to make it for you. You can feel free to check out some of my login panels that i've made, and try to understand how they work:

Windows 8 Login Style: http://www.mediafire.com/download/gbkal ... -login.zip

Another: https://community.multitheftauto.com/ind ... ls&id=7970

My god that code hell...

There is no way I can make a clear on where to use guiclick. :S

Link to comment
Can you help me to make it?

Of course I can help, but we're not going to make it for you. You can feel free to check out some of my login panels that i've made, and try to understand how they work:

Windows 8 Login Style: http://www.mediafire.com/download/gbkal ... -login.zip

Another: https://community.multitheftauto.com/ind ... ls&id=7970

Do you have skype or anything or can you point out in pastebin of which part of code is actual button scripts on the 2nd script so I can get an idea?

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