RAGE.Ui.HtmlWindow.ExecuteJs

From RAGE Multiplayer Wiki
Revision as of 06:36, 20 July 2019 by Kviz (talk | contribs)

Syntax

void HtmlWindow.ExecuteJs(string code);

Required Arguments

  • code: Command line for JS console;


C# Syntax

HtmlWindow CEF;

private void openUI() {
    CEF = new HtmlWindow("package://cef/index.html");
    cef.executeJs("startFunction(\"Argument 1\", \"Argument 2\")");
    Rage.Ui.Cursor.Visable = true;
}