^Dev-PoinT^ Posted November 29, 2011 Posted November 29, 2011 Hi all i Make This but i need 2 things Only can i get some help on them ? GUIEditor_Window = {} GUIEditor_TabPanel = {} GUIEditor_Tab = {} GUIEditor_Button = {} GUIEditor_Memo = {} GUIEditor_Checkbox = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(400,147,566,436,"GTA:T Help System!",false) GUIEditor_TabPanel[1] = guiCreateTabPanel(409,174,551,400,false) GUIEditor_Tab[1] = guiCreateTab("Main",GUIEditor_TabPanel[1]) GUIEditor_Label[1] = guiCreateLabel(10,13,223,16,"[*] Welcome To GTA:T Server",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[1],255, 255, 0) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Label[2] = guiCreateLabel(5,38,322,17,"[*] Want Some Weapons ? [Go To Weapons Shop]",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[2],255, 0 ,0) guiSetFont(GUIEditor_Label[2],"clear-normal") GUIEditor_Label[3] = guiCreateLabel(69,301,5,5,"",false,GUIEditor_Tab[1]) GUIEditor_Image[1] = guiCreateStaticImage(4,249,533,122,"images/logo.png",false,GUIEditor_Tab[1]) GUIEditor_Label[4] = guiCreateLabel(2,78,323,18,"[*] Want Some Points /EXp? [Kill a Player ]",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[4],0,255,0) guiSetFont(GUIEditor_Label[4],"clear-normal") GUIEditor_Label[5] = guiCreateLabel(2,115,280,19,"[*] Want Some Anti-Bgs System ?[Type /Kill]",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[5],0,0,255) guiSetFont(GUIEditor_Label[5],"clear-normal") GUIEditor_Label[6] = guiCreateLabel(1,156,293,18,"[*] This GameMode Made By Dev-PoinT 100%",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Label[6],"clear-normal") GUIEditor_Checkbox[1] = guiCreateCheckBox(6,217,20,13,"",false,false,GUIEditor_Tab[1]) GUIEditor_Label[7] = guiCreateLabel(38,216,232,14,"did You Have Fun ?",false,GUIEditor_Tab[1]) guiLabelSetColor(GUIEditor_Label[7],255, 255 ,0) GUIEditor_Button[1] = guiCreateButton(368,8,173,23,"Close",false,GUIEditor_Tab[1]) guiSetFont(GUIEditor_Button[1],"clear-normal") GUIEditor_Tab[2] = guiCreateTab("Help",GUIEditor_TabPanel[1]) GUIEditor_Memo[1] = guiCreateMemo(8,14,533,353,"GTA:T GameMode v4.0\n\n Features: \n [*] Weapons Shop v4.0!\n [*] Shop With New Features!\n [*] Fixed Some Bugs v3.0\n [*] New Spawn Place!v1.0\n [*] New Marker Entry!\n [*] New die Effects!v1.0\n [*] New Reward System v1.0\n [*] New Respawn System v1.0\n [*] Login / Register / System v2.0\n \n Credits goes to:\n - Castilo : For Help\n - MTASA Fourm Members : For Helping Me\n\n This GameMode By Dev-PoinT\n\nEnjoy!",false,GUIEditor_Tab[2]) guiMemoSetReadOnly(GUIEditor_Memo[1],true) 1= if i press Close its close 2- show the Crouser
Jaysds1 Posted November 29, 2011 Posted November 29, 2011 add this to the script: addEventHandler("onClientGUIClick",GUIEditor_Button[1],function(button) if (button == "left") then destroyElement(GUIEditor_TabPanel[1]) destroyElement(GUIEditor_Window[1]) showCursor(false) end end,false)
^Dev-PoinT^ Posted November 29, 2011 Author Posted November 29, 2011 the windows is not stick to the Panel
Jaysds1 Posted November 29, 2011 Posted November 29, 2011 I know, that's why I added destroyElement(GUIEditor_TabPanel[1]) destroyElement(GUIEditor_Window[1]) it destroys the tabpanel then destroys the window
unknooooown Posted November 29, 2011 Posted November 29, 2011 the windows is not stick to the Panel GUIEditor_TabPanel[1] = guiCreateTabPanel(409,174,551,400,false) Add a parrent to make it stick. https://wiki.multitheftauto.com/wiki/GuiCreateTabPanel
CapY Posted November 29, 2011 Posted November 29, 2011 Add a parrent to make it stick. GUI Window for example.
Jaysds1 Posted November 29, 2011 Posted November 29, 2011 ohhh, that's what he meant, sorry like Wafamde said, "add GUIEditor_Window[1]" to the end of the Tab Panel: --YOUR'S GUIEditor_TabPanel[1] = guiCreateTabPanel(409,174,551,400,false) --Parent GUIEditor_TabPanel[1] = guiCreateTabPanel(409,174,551,400,GUIEditor_Window[1])
^Dev-PoinT^ Posted November 29, 2011 Author Posted November 29, 2011 Thxx All Solved God I Love Mta Fourms
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