RAGE.Ui.HtmlWindow

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Creates a new browser.

Syntax

class RAGE.Ui.HtmlWindow;

Example

C# Syntax
C.png

Example

mp.events.add("consoleCommand", (command) => { mp.console.logInfo('Hello World'); });

RAGE.Ui.HtmlWindow CEF;

public void createBrowser(bool toggle, string way)
{
    CEF = new RAGE.Ui.HtmlWindow(way); // Creating of browser ( way = "package://cs_packages/test.html" )
}

public void activateBrowser(bool toggle)
{
    CEF.Active = toggle; // Activating of browser
}

public void urlBrowser(string url)
{
    CEF.Url = url; // Changing url of browser
}