Skip to main content

RAGE.Ui.HtmlWindow.ExecuteJs

Syntax​

void HtmlWindow.ExecuteJs(string code);

Required Arguments​

  • code: Command line for JS console;

C#​

HtmlWindow CEF;

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