ElTacoBanido Posted August 12, 2019 Share Posted August 12, 2019 outputChatBox('Event triggered',255,255,255) -- open our menu local page = "http://mta/players/index.html" local initBrowser = guiCreateBrowser(0, 0, screenWidth, screenHeight, true, false, false) local theBrowser = guiGetBrowser(initBrowser) addEventHandler("onClientBrowserCreated", theBrowser, function() outputChatBox('Event triggered',255,255,255) loadBrowserURL(source, page) showCursor(true, true) guiSetInputMode('no_binds') end) Somehow the onClientBrowserCreated will not trigger, making me not able to load an website. Link to comment
Tommy. Posted August 12, 2019 Share Posted August 12, 2019 try to change theBrowser to initBrowser addEventHandler("onClientBrowserCreated", initBrowser, function() 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