CreateBrowser: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 17: Line 17:
Returns ''true'' if the [[browser]] element was successfully created, ''false'' otherwise. Returns also ''false'', if the user disabled remote pages and ''isLocal'' was set to ''false''.
Returns ''true'' if the [[browser]] element was successfully created, ''false'' otherwise. Returns also ''false'', if the user disabled remote pages and ''isLocal'' was set to ''false''.


==Local vs remote mode==
==Local Example==
Todo
<syntaxhighlight lang="lua">
--todo
</syntaxhighlight>


==Example==
==Remote Example==
Todo
<syntaxhighlight lang="lua">
--todo
</syntaxhighlight>


==See also==
==See also==
{{CEF_functions}}
{{CEF_functions}}

Revision as of 19:23, 29 September 2014

This function creates a new web browser element.

Syntax

browser createBrowser ( int width, int height, bool isLocal [, bool transparent = false ] )

Required Arguments

  • width: The browser's native width
  • height: The browser's native height
  • isLocal: See Local vs remote mode

Optional Arguments

  • transparent: true if you want the browser transparent, false for opaque.

Returns

Returns true if the browser element was successfully created, false otherwise. Returns also false, if the user disabled remote pages and isLocal was set to false.

Local Example

--todo

Remote Example

--todo

See also