getBrowserSettings | Multi Theft Auto: Wiki Skip to content

getBrowserSettings

Client-side
Server-side
Shared

This function returns a table containing the browser settings.

OOP Syntax Help! I don't understand this!

Syntax

table getBrowserSettings ( )

Returns

  • table: settings
    • RemoteEnabled: true if remote websites are enabled, false otherwise
    • RemoteJavascript: true if Javascript is enabled on remote websites, false otherwise
    • PluginsEnabled: true if plugins such as Flash, Silverlight (but not Java) are enabled, false otherwise. This setting is false by default.

A table of settings.

Code Examples

client

This creates a browser and get the browser settings when the browser has been created.

local window = guiCreateWindow(377, 156, 671, 454, "", false)
guiWindowSetSizable(window, true)
local webBrowser = guiCreateBrowser(9, 26, 652, 418, false, false, false, window)
local theBrowser = guiGetBrowser(webBrowser)
addEventHandler("onClientBrowserCreated", theBrowser, function()
showCursor(true)
loadBrowserURL(source, "http://google.com\\")
for k,v in pairs(getBrowserSettings()) do
outputChatBox("['"..tostring(k).."'] = "..tostring(v))
end
end
)