Mark0 Posted September 7, 2012 Posted September 7, 2012 what is Wrong plz function startup() infoGui = guiCreateWindow(0.2463,0.0567,0.5913,0.68,"Information by Mark",false) guiSetAlpha(infoGui,1) guiWindowSetSizable(infoGui,false) guiWindowSetMovable(infoGui,true) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,39,455,351,false,infoGui) GUIEditor_Tab[1] = guiCreateTab("Rules",infoGui) GUIEditor_Memo[1] = guiCreateMemo(6,8,442,313,"\n Rules",false,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("Information",infoGui) GUIEditor_Memo[2] = guiCreateMemo(6,8,442,313,"\n Information",false,GUIEditor_Tab[2]) end addEventHandler("onClientResourceStart", resourceRoot, startup) function Guishow() if (guiGetVisible(infoGui)) then showCursor(false) guiSetVisible(infoGui,false) else showCursor(true) guiSetVisible(infoGui,true) end end bindKey ("F1", "down", Guishow )
Castillo Posted September 7, 2012 Posted September 7, 2012 You forgot to define the tables. function startup ( ) GUIEditor_TabPanel = { } GUIEditor_Tab = { } GUIEditor_Memo = { } infoGui = guiCreateWindow(0.2463,0.0567,0.5913,0.68,"Information by Mark",false) guiSetAlpha(infoGui,1) guiWindowSetSizable(infoGui,false) guiWindowSetMovable(infoGui,true) guiSetVisible(infoGui,false) GUIEditor_TabPanel[1] = guiCreateTabPanel(9,39,455,351,false,infoGui) GUIEditor_Tab[1] = guiCreateTab("Rules",infoGui) GUIEditor_Memo[1] = guiCreateMemo(6,8,442,313,"\n Rules",false,GUIEditor_Tab[1]) GUIEditor_Tab[2] = guiCreateTab("Information",infoGui) GUIEditor_Memo[2] = guiCreateMemo(6,8,442,313,"\n Information",false,GUIEditor_Tab[2]) end addEventHandler ( "onClientResourceStart", resourceRoot, startup ) function Guishow() if (guiGetVisible(infoGui)) then showCursor(false) guiSetVisible(infoGui,false) else showCursor(true) guiSetVisible(infoGui,true) end end bindKey ("F1", "down", Guishow ) GUIEditor_TabPanel = { } GUIEditor_Tab = { } GUIEditor_Memo = { } These.
Mark0 Posted September 7, 2012 Author Posted September 7, 2012 ty but the problem now is the windows start before i press F1 ???
Castillo Posted September 7, 2012 Posted September 7, 2012 My code will hide the window after being created.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now