Jump to content

GUI doesn't appear


Simple0x47

Recommended Posts

Hello Everybody, I'm a noob doing Gui's so please, Can anybody show me how I do to make appear this gui?

buttons = {} 
edits = {} 
  
addEventHandler("onClientResourceStart",resourceRoot, 
function() 
        screenW, screenH = guiGetScreenSize() 
        loginWindow = guiCreateWindow((screenW - 628) / 2, (screenH - 608) / 2, 628, 608, "COG Cops 'n' Robbers / Turfing / Civilians", false) 
        guiWindowSetSizable(loginWindow, false) 
        guiSetAlpha(loginWindow, 1.00) 
  
        GUIEditor.label[1] = guiCreateLabel(0, 32, 119, 44, "Username:", false, loginWindow) 
        guiSetFont(GUIEditor.label[1], "default-bold-small") 
        guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) 
        guiLabelSetVerticalAlign(GUIEditor.label[1], "center") 
        edits["UserEdit"] = guiCreateEdit(119, 31, 178, 45, "", false, loginWindow) 
        GUIEditor.label[2] = guiCreateLabel(0, 92, 119, 44, "Password:", false, loginWindow) 
        guiSetFont(GUIEditor.label[2], "default-bold-small") 
        guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) 
        guiLabelSetVerticalAlign(GUIEditor.label[2], "center") 
        edits["PassEdit"] = guiCreateEdit(119, 92, 178, 45, "", false, loginWindow) 
        guiEditSetMasked(["PassEdit"], true) 
        rememberUsername = guiCreateCheckBox(346, 47, 15, 15, "", false, false, loginWindow) 
        rememberPass = guiCreateCheckBox(346, 107, 15, 16, "", false, false, loginWindow) 
        GUIEditor.label[3] = guiCreateLabel(396, 47, 139, 15, "Remember Username", false, loginWindow) 
        GUIEditor.label[4] = guiCreateLabel(396, 107, 139, 15, "Remember Password", false, loginWindow) 
        buttons["login"] = guiCreateButton(10, 185, 173, 50, "Login", false, loginWindow) 
        guiSetProperty(loginButton, "NormalTextColour", "FFFFFEFE") 
        buttons["register"] = guiCreateButton(229, 185, 173, 50, "Create Account", false, loginWindow) 
        guiSetProperty(["register"], "NormalTextColour", "FFFFFEFE") 
        buttons["forgotPass"] = guiCreateButton(445, 185, 173, 50, "Forgot Password?", false, loginWindow) 
        guiSetProperty(["forgotPass"], "NormalTextColour", "FFFFFEFE") 
        GUIEditor.label[5] = guiCreateLabel(0, 267, 628, 64, "Cheating or Scamming will result in a 5 years ban.", false, loginWindow) 
        guiSetFont(GUIEditor.label[5], "clear-normal") 
        guiLabelSetColor(GUIEditor.label[5], 41, 205, 229) 
        guiLabelSetHorizontalAlign(GUIEditor.label[5], "center", false) 
        guiLabelSetVerticalAlign(GUIEditor.label[5], "center") 
        GUIEditor.tabpanel[1] = guiCreateTabPanel(12, 322, 606, 276, false, loginWindow) 
  
        GUIEditor.tab[1] = guiCreateTab("Server Updates", GUIEditor.tabpanel[1]) 
  
        updatesInfo = guiCreateGridList(0, 0, 606, 252, false, GUIEditor.tab[1]) 
        guiGridListAddColumn(updatesInfo, "Date", 0.3) 
        guiGridListAddColumn(updatesInfo, "Author", 0.3) 
        guiGridListAddColumn(updatesInfo, "Description", 0.3) 
        for i = 1, 2 do 
            guiGridListAddRow(updatesInfo) 
        end 
        guiGridListSetItemText(updatesInfo, 0, 1, "24/07/2015", false, false) 
        guiGridListSetItemText(updatesInfo, 0, 2, "Simple01", false, false) 
        guiGridListSetItemText(updatesInfo, 0, 3, "Creation of the gamemode.", false, false) 
        guiGridListSetItemText(updatesInfo, 1, 1, "-", false, false) 
        guiGridListSetItemText(updatesInfo, 1, 2, "-", false, false) 
        guiGridListSetItemText(updatesInfo, 1, 3, "-", false, false) 
        GUIEditor.gridlist[1] = guiCreateGridList(0, 0, 606, 252, false, GUIEditor.tab[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Date", 0.3) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Author", 0.3) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Description", 0.3) 
        for i = 1, 2 do 
            guiGridListAddRow(GUIEditor.gridlist[1]) 
        end 
        guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "24/07/2015", false, false) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 0, 2, "Simple01", false, false) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 0, 3, "Creation of the gamemode.", false, false) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, "-", false, false) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 1, 2, "-", false, false) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 1, 3, "-", false, false)     
    end 
     
    guiSetVisible(loginWindow,true) 
    showCursor(true) 
     
    addEventHandler("onClientGUIClick",root,handleButtonClick) --handler to handle all client buttons that are clicked. 
  
end) 

Thanks for your time.

Link to comment
buttons = {} 
edits = {} 
  
addEventHandler("onClientResourceStart",resourceRoot, 
function() 
        screenW, screenH = guiGetScreenSize() 
        loginWindow = guiCreateWindow((screenW - 628) / 2, (screenH - 608) / 2, 628, 608, "COG Cops 'n' Robbers / Turfing / Civilians", false) 
        guiWindowSetSizable(loginWindow, false) 
        guiSetAlpha(loginWindow, 1.00) 
  
        GUIEditor.label[1] = guiCreateLabel(0, 32, 119, 44, "Username:", false, loginWindow) 
        guiSetFont(GUIEditor.label[1], "default-bold-small") 
        guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) 
        guiLabelSetVerticalAlign(GUIEditor.label[1], "center") 
        edits["UserEdit"] = guiCreateEdit(119, 31, 178, 45, "", false, loginWindow) 
        GUIEditor.label[2] = guiCreateLabel(0, 92, 119, 44, "Password:", false, loginWindow) 
        guiSetFont(GUIEditor.label[2], "default-bold-small") 
        guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) 
        guiLabelSetVerticalAlign(GUIEditor.label[2], "center") 
        edits["PassEdit"] = guiCreateEdit(119, 92, 178, 45, "", false, loginWindow) 
        guiEditSetMasked("PassEdit", true) 
        rememberUsername = guiCreateCheckBox(346, 47, 15, 15, "", false, false, loginWindow) 
        rememberPass = guiCreateCheckBox(346, 107, 15, 16, "", false, false, loginWindow) 
        GUIEditor.label[3] = guiCreateLabel(396, 47, 139, 15, "Remember Username", false, loginWindow) 
        GUIEditor.label[4] = guiCreateLabel(396, 107, 139, 15, "Remember Password", false, loginWindow) 
        buttons["login"] = guiCreateButton(10, 185, 173, 50, "Login", false, loginWindow) 
        guiSetProperty(loginButton, "NormalTextColour", "FFFFFEFE") 
        buttons["register"] = guiCreateButton(229, 185, 173, 50, "Create Account", false, loginWindow) 
        guiSetProperty("register", "NormalTextColour", "FFFFFEFE") 
        buttons["forgotPass"] = guiCreateButton(445, 185, 173, 50, "Forgot Password?", false, loginWindow) 
        guiSetProperty("forgotPass", "NormalTextColour", "FFFFFEFE") 
        GUIEditor.label[5] = guiCreateLabel(0, 267, 628, 64, "Cheating or Scamming will result in a 5 years ban.", false, loginWindow) 
        guiSetFont(GUIEditor.label[5], "clear-normal") 
        guiLabelSetColor(GUIEditor.label[5], 41, 205, 229) 
        guiLabelSetHorizontalAlign(GUIEditor.label[5], "center", false) 
        guiLabelSetVerticalAlign(GUIEditor.label[5], "center") 
        GUIEditor.tabpanel[1] = guiCreateTabPanel(12, 322, 606, 276, false, loginWindow) 
  
        GUIEditor.tab[1] = guiCreateTab("Server Updates", GUIEditor.tabpanel[1]) 
  
        updatesInfo = guiCreateGridList(0, 0, 606, 252, false, GUIEditor.tab[1]) 
        guiGridListAddColumn(updatesInfo, "Date", 0.3) 
        guiGridListAddColumn(updatesInfo, "Author", 0.3) 
        guiGridListAddColumn(updatesInfo, "Description", 0.3) 
        for i = 1, 2 do 
            guiGridListAddRow(updatesInfo) 
        end 
        guiGridListSetItemText(updatesInfo, 0, 1, "24/07/2015", false, false) 
        guiGridListSetItemText(updatesInfo, 0, 2, "Simple01", false, false) 
        guiGridListSetItemText(updatesInfo, 0, 3, "Creation of the gamemode.", false, false) 
        guiGridListSetItemText(updatesInfo, 1, 1, "-", false, false) 
        guiGridListSetItemText(updatesInfo, 1, 2, "-", false, false) 
        guiGridListSetItemText(updatesInfo, 1, 3, "-", false, false) 
        GUIEditor.gridlist[1] = guiCreateGridList(0, 0, 606, 252, false, GUIEditor.tab[1]) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Date", 0.3) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Author", 0.3) 
        guiGridListAddColumn(GUIEditor.gridlist[1], "Description", 0.3) 
        for i = 1, 2 do 
            guiGridListAddRow(GUIEditor.gridlist[1]) 
        end 
        guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "24/07/2015", false, false) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 0, 2, "Simple01", false, false) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 0, 3, "Creation of the gamemode.", false, false) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 1, 1, "-", false, false) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 1, 2, "-", false, false) 
        guiGridListSetItemText(GUIEditor.gridlist[1], 1, 3, "-", false, false)     
end 
) 
  

There you go but I have the feeling this isn't made by you. You haven't copied the whole script it seems

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