CobbTheWarriorsRPG Posted September 22, 2015 Posted September 22, 2015 Hello all, i am using an example of the wiki, my question is, why if i change the loadBrowserURL it doesnt work?, just work on youtube, thanks! --In order to render the browser on the full screen, we need to know the dimensions. local screenWidth, screenHeight = guiGetScreenSize() --Let's create a new browser in remote mode. local window = guiCreateWindow(0, 0, screenWidth, screenHeight, "Webbrowser", false) local browser = guiCreateBrowser(0, 0, 800, 600, false, false, false, window) -- The event onClientBrowserCreated will be triggered, after the browser has been initialized. -- After this event has been triggered, we will be able to load our URL local theBrowser = guiGetBrowser(browser) -- Get the browser element from gui-browser addEventHandler("onClientBrowserCreated", theBrowser, function() -- After the browser has been initialized, we can load [url=https://www.youtube.com]www.youtube.com[/url] loadBrowserURL(source, "https://www.youtube.com")--Here, when i change the url to [url=http://www.google.com]http://www.google.com[/url] it doesnt work end )
MisterQuestions Posted September 23, 2015 Posted September 23, 2015 Use requestBrowserDomains.. All others are blocked. "El conocimiento jamás debe detenerse, por que es lo único que nos salvará cuando no nos quede más". Att: -|TG|-Mister[Q]<.
CobbTheWarriorsRPG Posted September 24, 2015 Author Posted September 24, 2015 Yeah, but if i put eg: facebook.com the web page will be in blank, some help? thanks
MIKI785 Posted September 24, 2015 Posted September 24, 2015 You habe to request it first, but for example facebook uses tons of subdomains and other domains so for that you should use onClientBrowserResourceBlocked. Lua Scripter Owner of mshost.cz MTA portal.
xeon17 Posted September 24, 2015 Posted September 24, 2015 Check this topic: viewtopic.php?f=104&t=92263 A unique GangWar gamemode waiting for you!Click here for more information.
CobbTheWarriorsRPG Posted September 25, 2015 Author Posted September 25, 2015 it works!, thanks to all!
xeon17 Posted September 25, 2015 Posted September 25, 2015 Glad to hear that it works fine A unique GangWar gamemode waiting for you!Click here for more information.
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