DestroyCefBrowser

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

Destroys a CefBrowser created with the function createCefBrowser

Syntax

In Javascript
Client-Side Function

API.destroyCefBrowser(Browser browser);

Required Arguments

  • browser parameter input should be in Browser type.

Usage example

In Javascript
Client-Side Function

var mainBrowser = null;
var res = API.getScreenResolution();
mainBrowser = API.createCefBrowser(res.Width, res.Height, true);
API.destroyCefBrowser(mainBrowser);

References