ResizeBrowser

From Multi Theft Auto: Wiki
Revision as of 10:39, 6 September 2016 by DevMedoo (talk | contribs) (Created page with "__NOTOC__ {{Client function}} {{New feature/item|3.0160|1.5.3|9912| Allows resizing of CEF browsers at runtime. }} ==Syntax== <syntaxhighlight lang="lua"> bool resizeBrowser(browser webBrowse...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Allows resizing of CEF browsers at runtime.

Syntax

bool resizeBrowser(browser webBrowser, float width, float height)

Required Arguments

  • webBrowser: The browser you want to resize.
  • width: The new width of the browser.
  • height: The new height of the browser.

Returns

Returns true if the browser is resized successfully, false if there's something wrong.

Example

Accessories-text-editor.png Script Example Missing Function ResizeBrowser needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.
-- TODO


See Also