RAGE.Ui.HtmlWindow.Destroy

From RAGE Multiplayer Wiki
Revision as of 06:39, 20 July 2019 by Kviz (talk | contribs) (Created page with "==Syntax== <pre>void HtmlWindow.Destroy();</pre> {{CSharpContainer| <syntaxhighlight lang="C#"> HtmlWindow CEF; private void openUI() { CEF = new HtmlWindow("package://...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Syntax

void HtmlWindow.Destroy();


C# Syntax

HtmlWindow CEF;

private void openUI() {
    CEF = new HtmlWindow("package://cef/index.html");
    Rage.Ui.Cursor.Visible = true;
    RAGE.Game.Entity.FreezeEntityPosition(Player.LocalPlayer.Handle, true);
}

private void destroyUI() {
    CEF.Destroy();
    Rage.Ui.Cursor.Visible = false;
    RAGE.Game.Entity.FreezeEntityPosition(Player.LocalPlayer.Handle, false);
}