CreateCefBrowser

From GT-MP
Jump to: navigation, search
CreateCefBrowser
Client-Side Function
System-users.png Client-Side Javascript.png JavaScript

Creates a new CEF Browser, this Browser is able to display HTML Pages.

Syntax

In Javascript
Client-Side Function

API.createCefBrowser(Number width, Number height, Boolean local = true);
  • width: parameter input should be in Number type.
  • height: parameter input should be in Number type.
  • local: parameter input should be in Boolean type. Default is true.

NOTE If local is false, you will not be able to communicate with it via resourceCall and Browser.call!

NOTE 2 If local is true, you will not be able to download remote resources(Js, CSS, images, etc...)!

Usage example(s)

References