RAGE.Ui.HtmlWindow.ExecuteJs

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Syntax

void HtmlWindow.ExecuteJs(string code);

Required Arguments

  • code: Command line for JS console;


C# Syntax
C.png

HtmlWindow CEF;

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