Jump to content

GUI not showing


GerardWay

Recommended Posts

Title says it all.

GUI = { 
     
window = {}, 
     
label = {}, 
     
memo = {} 
} 
  
window = guiCreateWindow(74, 0, 1024, 703, "Zombie Outbreak Reloaded - Official Gangs/Squads", false) 
  
guiWindowSetSizable(window, false) 
  
  
GUI.label[1] = guiCreateLabel(126, 32, 806, 96, "Search And Rescue - Level 5", false, window) 
  
guiSetFont(GUI.label[1], "sa-gothic") 
  
guiLabelSetColor(GUI.label[1], 0, 5, 255) 
  
GUI.label[2] = guiCreateLabel(99, 128, 852, 63, "Outlaws Of Mayhem - Level 5", false, window) 
  
guiSetFont(GUI.label[2], "sa-gothic") 
guiLabelSetColor(GUI.label[2], 235, 0, 0) 
  
GUI.label[3] = guiCreateLabel(162, 230, 848, 66, "The Phantom Aces - Level 4", false, window) 
  
guiSetFont(GUI.label[3], "sa-gothic") 
  
GUI.label[4] = guiCreateLabel(135, 350, 860, 112, "Special Military Unit - Level 2", false, window) 
  
guiSetFont(GUI.label[4], "sa-gothic") 
guiLabelSetColor(GUI.label[4], 19, 24, 255) 
  
GUI.label[5] = guiCreateLabel(243, 462, 859, 92, "Alpha Team - Level 1", false, window) 
  
guiSetFont(GUI.label[5], "sa-gothic") 
guiLabelSetColor(GUI.label[5], 19, 255, 46) 
  
GUI.label[6] = guiCreateLabel(437, 103, 417, 25, "Leader: Devildog", false, window) 
  
guiSetFont(GUI.label[6], "default-bold-small") 
  
GUI.label[7] = guiCreateLabel(407, 306, 231, 15, "Leaders: Atlas, Cyanide, Mayuri", false, window) 
  
guiSetFont(GUI.label[7], "default-bold-small") 
  
GUI.label[8] = guiCreateLabel(440, 197, 98, 15, "Leader: Michaell", false, window) 
  
guiSetFont(GUI.label[8], "default-bold-small") 
  
GUI.label[9] = guiCreateLabel(438, 416, 225, 15, "Leader: Chilenoazul", false, window) 
  
guiSetFont(GUI.label[9], "default-bold-small") 
  
GUI.label[10] = guiCreateLabel(442, 527, 221, 17, "Leader: Shaman", false, window) 
  
guiSetFont(GUI.label[10], "default-bold-small") 
  
GUI.label[11] = guiCreateLabel(186, 572, 777, 91, "Secret Service - No Level", false, window) 
  
guiSetFont(GUI.label[11], "sa-gothic") 
guiLabelSetColor(GUI.label[11], 0, 206, 231) 
  
GUI.label[12] = guiCreateLabel(442, 631, 220, 15, "Leader: Haze", false, window) 
  
guiSetFont(GUI.label[12], "default-bold-small") 
  
  
  
button = guiCreateButton(302, 695, 540, 95, "Close", false, window) 
  
guiSetFont(button[1], "sa-gothic") 
addEventHandler("onClientGUIClick",button,CloseGui) 
     end 
) 
  
function CloseGui () 
guiSetVisible(window, false) 
showCursor(false) 
end 
  
addCommandHandler("groupinfo", 
function visible() 
guiSetVisible(window, true) 
setTimer ( showCursor,1000,1,true ) 
end 
) 

can you guys help with this please? Appreciated.

Link to comment
GUI = { 
    
window = {}, 
    
label = {}, 
    
memo = {} 
} 
  
window = guiCreateWindow(74, 0, 1024, 703, "Zombie Outbreak Reloaded - Official Gangs/Squads", false) 
  
guiWindowSetSizable(window, false) 
  
  
GUI.label[1] = guiCreateLabel(126, 32, 806, 96, "Search And Rescue - Level 5", false, window) 
  
guiSetFont(GUI.label[1], "sa-gothic") 
  
guiLabelSetColor(GUI.label[1], 0, 5, 255) 
  
GUI.label[2] = guiCreateLabel(99, 128, 852, 63, "Outlaws Of Mayhem - Level 5", false, window) 
  
guiSetFont(GUI.label[2], "sa-gothic") 
guiLabelSetColor(GUI.label[2], 235, 0, 0) 
  
GUI.label[3] = guiCreateLabel(162, 230, 848, 66, "The Phantom Aces - Level 4", false, window) 
  
guiSetFont(GUI.label[3], "sa-gothic") 
  
GUI.label[4] = guiCreateLabel(135, 350, 860, 112, "Special Military Unit - Level 2", false, window) 
  
guiSetFont(GUI.label[4], "sa-gothic") 
guiLabelSetColor(GUI.label[4], 19, 24, 255) 
  
GUI.label[5] = guiCreateLabel(243, 462, 859, 92, "Alpha Team - Level 1", false, window) 
  
guiSetFont(GUI.label[5], "sa-gothic") 
guiLabelSetColor(GUI.label[5], 19, 255, 46) 
  
GUI.label[6] = guiCreateLabel(437, 103, 417, 25, "Leader: Devildog", false, window) 
  
guiSetFont(GUI.label[6], "default-bold-small") 
  
GUI.label[7] = guiCreateLabel(407, 306, 231, 15, "Leaders: Atlas, Cyanide, Mayuri", false, window) 
  
guiSetFont(GUI.label[7], "default-bold-small") 
  
GUI.label[8] = guiCreateLabel(440, 197, 98, 15, "Leader: Michaell", false, window) 
  
guiSetFont(GUI.label[8], "default-bold-small") 
  
GUI.label[9] = guiCreateLabel(438, 416, 225, 15, "Leader: Chilenoazul", false, window) 
  
guiSetFont(GUI.label[9], "default-bold-small") 
  
GUI.label[10] = guiCreateLabel(442, 527, 221, 17, "Leader: Shaman", false, window) 
  
guiSetFont(GUI.label[10], "default-bold-small") 
  
GUI.label[11] = guiCreateLabel(186, 572, 777, 91, "Secret Service - No Level", false, window) 
  
guiSetFont(GUI.label[11], "sa-gothic") 
guiLabelSetColor(GUI.label[11], 0, 206, 231) 
  
GUI.label[12] = guiCreateLabel(442, 631, 220, 15, "Leader: Haze", false, window) 
  
guiSetFont(GUI.label[12], "default-bold-small") 
  
  
  
button = guiCreateButton(302, 695, 540, 95, "Close", false, window) 
  
guiSetFont(button[1], "sa-gothic") 
  
function CloseGui () 
guiSetVisible(window, false) 
showCursor(false) 
end 
addEventHandler ( "onClientGUIClick", button, CloseGui, false ) 
  
function ShowGui() 
guiSetVisible ( window, true ) 
setTimer ( showCursor, 1000, 1, true ) 
end 
addCommandHandler ( "groupinfo", ShowGui ) 

Link to comment
GUI = { 
    
window = {}, 
    
label = {}, 
    
memo = {} 
} 
  
window = guiCreateWindow(74, 0, 1024, 703, "Zombie Outbreak Reloaded - Official Gangs/Squads", false) 
  
guiWindowSetSizable(window, false) 
  
  
GUI.label[1] = guiCreateLabel(126, 32, 806, 96, "Search And Rescue - Level 5", false, window) 
  
guiSetFont(GUI.label[1], "sa-gothic") 
  
guiLabelSetColor(GUI.label[1], 0, 5, 255) 
  
GUI.label[2] = guiCreateLabel(99, 128, 852, 63, "Outlaws Of Mayhem - Level 5", false, window) 
  
guiSetFont(GUI.label[2], "sa-gothic") 
guiLabelSetColor(GUI.label[2], 235, 0, 0) 
  
GUI.label[3] = guiCreateLabel(162, 230, 848, 66, "The Phantom Aces - Level 4", false, window) 
  
guiSetFont(GUI.label[3], "sa-gothic") 
  
GUI.label[4] = guiCreateLabel(135, 350, 860, 112, "Special Military Unit - Level 2", false, window) 
  
guiSetFont(GUI.label[4], "sa-gothic") 
guiLabelSetColor(GUI.label[4], 19, 24, 255) 
  
GUI.label[5] = guiCreateLabel(243, 462, 859, 92, "Alpha Team - Level 1", false, window) 
  
guiSetFont(GUI.label[5], "sa-gothic") 
guiLabelSetColor(GUI.label[5], 19, 255, 46) 
  
GUI.label[6] = guiCreateLabel(437, 103, 417, 25, "Leader: Devildog", false, window) 
  
guiSetFont(GUI.label[6], "default-bold-small") 
  
GUI.label[7] = guiCreateLabel(407, 306, 231, 15, "Leaders: Atlas, Cyanide, Mayuri", false, window) 
  
guiSetFont(GUI.label[7], "default-bold-small") 
  
GUI.label[8] = guiCreateLabel(440, 197, 98, 15, "Leader: Michaell", false, window) 
  
guiSetFont(GUI.label[8], "default-bold-small") 
  
GUI.label[9] = guiCreateLabel(438, 416, 225, 15, "Leader: Chilenoazul", false, window) 
  
guiSetFont(GUI.label[9], "default-bold-small") 
  
GUI.label[10] = guiCreateLabel(442, 527, 221, 17, "Leader: Shaman", false, window) 
  
guiSetFont(GUI.label[10], "default-bold-small") 
  
GUI.label[11] = guiCreateLabel(186, 572, 777, 91, "Secret Service - No Level", false, window) 
  
guiSetFont(GUI.label[11], "sa-gothic") 
guiLabelSetColor(GUI.label[11], 0, 206, 231) 
  
GUI.label[12] = guiCreateLabel(442, 631, 220, 15, "Leader: Haze", false, window) 
  
guiSetFont(GUI.label[12], "default-bold-small") 
  
  
  
button = guiCreateButton(302, 695, 540, 95, "Close", false, window) 
  
guiSetFont(button, "sa-gothic") -- bug here 
addEventHandler("onClientGUIClick",button,CloseGui) 
     end 
) 
  
function CloseGui () 
guiSetVisible(window, false) 
showCursor(false) 
end 
  
addCommandHandler("groupinfo", 
function() -- you had a function name here 
guiSetVisible(window, true) 
setTimer ( showCursor,1000,1,true ) 
end 
) 

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