IsBrowserDomainBlocked

From Multi Theft Auto: Wiki
Revision as of 19:28, 31 May 2015 by Dmitry7zip (talk | contribs) (OOP fix)
Jump to navigation Jump to search

This function checks if the specified URL is blocked from being loaded.

Syntax

bool isBrowserDomainBlocked ( string address [, bool isURL = false] )

OOP Syntax Help! I don't understand this!

Method: browser:isDomainBlocked(...)
Variable: .isBrowserDomainBlocked


Required arguments

  • address: A website URL

Optional arguments

  • isURL: true if address should be parsed as URL, false otherwise.

Returns

Returns true if the URL is able to be loaded, false if it is blocked.

Example

--Check the state of wiki.mtasa.com
if ( isBrowserDomainBlocked ( "wiki.mtasa.com" ) ) then
	--If it is blocked.
	outputChatBox("wiki.mtasa.com is blocked and can't be loaded right now!")
else
	--If it is not blocked. (Was accepted by the user)
	outputChatBox("wiki.mtasa.com is not blocked and ready to be loaded!")
end

See Also