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.