RAGE.Ui.HtmlWindow.ExecuteJs: Difference between revisions

From RAGE Multiplayer Wiki
No edit summary
No edit summary
 
Line 14: Line 14:
     cef.executeJs("startFunction(\"Argument 1\", \"Argument 2\")");
     cef.executeJs("startFunction(\"Argument 1\", \"Argument 2\")");
     Rage.Ui.Cursor.Visible = true;
     Rage.Ui.Cursor.Visible = true;
    RAGE.Game.Entity.FreezeEntityPosition(Player.LocalPlayer.Handle, true);
}
}
</syntaxhighlight>
</syntaxhighlight>
}}
}}

Latest revision as of 12:23, 29 July 2019

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.Visible = true;
}