Hello,
Its a long time ago i scripted a gui and im a noob scripter and i want my gui to open but i forgot how x)
Can someone pls help me ?
Thx.
"Client"
function showwindow ()
guiSetVisible( GUIEditor.window[1], not guiGetVisible( GUIEditor.window[1] ) )
showCursor( guiGetVisible( GUIEditor.window[1] ) )
guiSetInputEnabled( guiGetVisible( GUIEditor.window[1] ) )
end
addEvent ( "openGUI", true )
addEventHandler ( "openGUI", localPlayer, showwindow )
addCommandHandler("czh",openGUI)
bindKey("F7","down","openGUI")
"Server"
GUIEditor = {
memo = {},
staticimage = {},
window = {},
tab = {},
tabpanel = {},
}
addEventHandler("onClientResourceStart", resourceRoot,
function()
GUIEditor.window[1] = guiCreateWindow(630, 262, 711, 563, "CzH|Racing DM/DD", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF47FF00")
GUIEditor.tabpanel[1] = guiCreateTabPanel(278, 29, 406, 509, false, GUIEditor.window[1])
GUIEditor.tab[1] = guiCreateTab("Rules", GUIEditor.tabpanel[1])
GUIEditor.memo[1] = guiCreateMemo(8, 9, 391, 467, " Rules :\n\n-1\n\n-2\n\n-3\n\n-4\n\n-5\n\n-6\n\n-7\n\n-8\n\n-9\n\n-10\n\n-11\n\n-12\n\n-13\n\n-14\n\n-15", false, GUIEditor.tab[1])
GUIEditor.tab[2] = guiCreateTab("Members", GUIEditor.tabpanel[1])
GUIEditor.memo[2] = guiCreateMemo(10, 10, 386, 467, "Leaders :\n-\n-\n\nSub leaders :\n-----------------\n\nMembers :\n----------------", false, GUIEditor.tab[2])
GUIEditor.window[2] = guiCreateWindow(630, 262, 711, 563, "CzH|Racing DM/DD", false)
guiWindowSetSizable(GUIEditor.window[2], false)
guiSetProperty(GUIEditor.window[2], "CaptionColour", "FF47FF00")
GUIEditor.tabpanel[2] = guiCreateTabPanel(278, 29, 406, 509, false, GUIEditor.window[2])
GUIEditor.tab[3] = guiCreateTab("Rules", GUIEditor.tabpanel[2])
GUIEditor.memo[3] = guiCreateMemo(8, 9, 391, 467, " Rules :\n\n-1 Don't insult!\n\n-2 Do not spam!\n\n-3 Respect other players!\n\n-4 Respect the admins!\n\n-5 Don't swear!\n\n-6 Don't ask for admin! else Mute/Kick/Ban\n 5min/ --- /1 hour\n-7 English and Dutch only in global chat!\n\n-8 \n\n-9\n\n-10\n\n-11\n\n-12\n\n-13\n\n-14\n\n-15", false, GUIEditor.tab[3])
GUIEditor.tab[4] = guiCreateTab("Members", GUIEditor.tabpanel[2])
GUIEditor.memo[4] = guiCreateMemo(10, 10, 386, 467, "Leaders :\n- CzH|Rocket\n- CzHTwister\n\nSub leaders :\n-----------------\n\nMembers :\n----------------", false, GUIEditor.tab[4])
GUIEditor.staticimage[1] = guiCreateStaticImage(10, 350, 267, 204, ":race/img/title.png", false, GUIEditor.window[2])
GUIEditor.memo[5] = guiCreateMemo(22, 54, 247, 289, "Welcome to CzH|Racing,\n\nI hope you will enjoy this server.\nBefore you play please read the rules ->\nIf there are any problems please contact me on skype : sandro-,- \nIf you wanna join CzH please contact :\nsandro-,- or Itzzzzmarvin on skype.\n\n\nNews :\n--------------------------------------------------------.--------------------------------------------------------.--------------------------------------------------------.--------------------------------------------------------.--------------------------------------------------------.--------------------------------------------------------.--------------------------------------------------------.", false, GUIEditor.window[2])
GUIEditor.window[3] = guiCreateWindow(630, 262, 711, 563, "CzH|Racing DM/DD", false)
guiWindowSetSizable(GUIEditor.window[3], false)
guiSetProperty(GUIEditor.window[3], "CaptionColour", "FF47FF00")
GUIEditor.tabpanel[3] = guiCreateTabPanel(278, 29, 406, 509, false, GUIEditor.window[3])
GUIEditor.tab[5] = guiCreateTab("Rules", GUIEditor.tabpanel[3])
GUIEditor.memo[6] = guiCreateMemo(8, 9, 391, 467, " Rules :\n\n-1\n\n-2\n\n-3\n\n-4\n\n-5\n\n-6\n\n-7\n\n-8\n\n-9\n\n-10\n\n-11\n\n-12\n\n-13\n\n-14\n\n-15", false, GUIEditor.tab[5])
GUIEditor.tab[6] = guiCreateTab("Members", GUIEditor.tabpanel[3])
GUIEditor.memo[7] = guiCreateMemo(10, 10, 386, 467, "Leaders :\n-\n-\n\nSub leaders :\n-----------------\n\nMembers :\n----------------", false, GUIEditor.tab[6])
GUIEditor.window[4] = guiCreateWindow(630, 262, 711, 563, "CzH|Racing DM/DD", false)
guiWindowSetSizable(GUIEditor.window[4], false)
guiSetProperty(GUIEditor.window[4], "CaptionColour", "FF47FF00")
GUIEditor.tabpanel[4] = guiCreateTabPanel(278, 29, 406, 509, false, GUIEditor.window[4])
GUIEditor.tab[7] = guiCreateTab("Rules", GUIEditor.tabpanel[4])
GUIEditor.memo[8] = guiCreateMemo(8, 9, 391, 467, " Rules :\n\n-1 Don't insult!\n\n-2 Do not spam!\n\n-3 Respect other players!\n\n-4 Respect the admins!\n\n-5 Don't swear!\n\n-6 Don't ask for admin! else Mute/Kick/Ban!\n 5min/ --- /1 hour!\n-7 English and Dutch only in public chat!\n\n-8 Use /pm [name] to talk in other language!", false, GUIEditor.tab[7])
GUIEditor.tab[8] = guiCreateTab("Members", GUIEditor.tabpanel[4])
GUIEditor.memo[9] = guiCreateMemo(10, 10, 386, 467, "Leaders :\n- CzH|Rocket\n- CzHTwister\n\nSub leaders :\n-----------------\n\nMembers :\n----------------", false, GUIEditor.tab[8])
GUIEditor.staticimage[2] = guiCreateStaticImage(10, 350, 267, 204, ":race/img/title.png", false, GUIEditor.window[4])
GUIEditor.memo[10] = guiCreateMemo(22, 54, 247, 289, "Welcome to CzH|Racing,\n\nI hope you will enjoy this server.\nBefore you play please read the rules ->\nIf there are any problems please contact me on skype : sandro-,- \nIf you wanna join CzH please contact :\nsandro-,- or Itzzzzmarvin on skype.\n\n\nNews :\n--------------------------------------------------------.--------------------------------------------------------.--------------------------------------------------------.--------------------------------------------------------.--------------------------------------------------------.--------------------------------------------------------.--------------------------------------------------------.", false, GUIEditor.window[4])
end
)
I used GUI editor for the one who wanna know it
*added it into [lua] [./lua]