Electro88 Posted August 6, 2016 Share Posted August 6, 2016 hello i need help for loadBrowser i click button not see anything please help local browser = guiCreateBrowser(85, 25, 800, 600, false, false, false) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == GUIEditor.button[1] ) then guiSetVisible ( GUIEditor.window[99] , false) showCursor ( false ) elseif ( source == GUIEditor.button[4] ) then loadBrowserURL(browser, "www.mtasa.com") Link to comment
Epozide Posted August 6, 2016 Share Posted August 6, 2016 Can you show me the whole client side? Link to comment
Electro88 Posted August 6, 2016 Author Share Posted August 6, 2016 GUIEditor = { button = {}, window = {}, staticimage = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[99] = guiCreateWindow(0, 0, 800, 600, "", false) guiWindowSetSizable(GUIEditor.window[99], false) guiSetVisible(GUIEditor.window[99], false) GUIEditor.button[1] = guiCreateButton(650, 25, 54, 36, "Kapat/Close", false, GUIEditor.window[99]) GUIEditor.button[2] = guiCreateButton(0.2550, 25, 54, 36, "<<", false, GUIEditor.window[99]) GUIEditor.button[3] = guiCreateButton(85, 25, 54, 36, ">>", false, GUIEditor.window[99]) GUIEditor.button[4] = guiCreateButton(0, 50, 69, 36, "Haberler Ve Hotmail", false, GUIEditor.window[99]) GUIEditor.staticimage[1] = guiCreateStaticImage(102, 72, 73, 69, "Images/2.png", false, GUIEditor.window[99]) guiCreateMemo(150,25,325,35,"https://www.Kardeş_Anamenu-page-01.com",false, GUIEditor.window[99]) end ) local browser = guiCreateBrowser(85, 25, 800, 600, false, false, false) addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == GUIEditor.button[1] ) then guiSetVisible ( GUIEditor.window[99] , false) showCursor ( false ) elseif ( source == GUIEditor.button[4] ) then injectBrowserMouseDown(browser, button) loadBrowserURL(browser, "www.mtasa.com") end end) bindKey("F1","down", function() if guiGetVisible(GUIEditor.window[99]) == true then guiSetVisible( GUIEditor.window[99], false) showCursor(false) elseif guiGetVisible(GUIEditor.window[99]) == false then guiSetVisible(GUIEditor.window[99], true) showCursor(true) end end) Link to comment
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