ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client events
  3. onClientBrowserCreated

Event

onClientBrowserCreated

ClientBrowserIdentical to MTA:SA

The browser is ready (the page process started) and you can load an address in it.

Handler

addEventHandler("onClientBrowserCreated", root, function() ... end)

Source

source is the browser.

Example

local browser = createBrowser(1280, 720, false)
addEventHandler("onClientBrowserCreated", browser, function()
    loadBrowserURL(source, "https://trilogy-hub.com")
end)

See also