Jump to content

Why not working the ingame browser?


Turbe$Z

Recommended Posts

x,y = guiGetScreenSize()
image = guiCreateStaticImage( x*0.05, y*0.1, x*0.9, y*0.7, "border.png", false)      
local browser = guiCreateBrowser(x*0.113, y*0.045, x*0.673, y*0.605, false, false, false, image)

guiSetVisible ( image, false )

local theBrowser = guiGetBrowser(browser)

addEventHandler("onClientBrowserCreated", theBrowser, 
	function()
		loadBrowserURL(source, "http://tinyurl.com/lysqs6y")
	end
)

function funct()
	if guiGetVisible ( image ) == false then
		showCursor ( true )
		guiSetVisible ( image, true)
	else
		showCursor ( false)
		guiSetVisible ( image, false)
	end
end
addCommandHandler("honfoglalo", funct)

why not working? when i change the URL to "http://youtube.com" the YT is working, but this why not?

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