RAGE.Ui.HtmlWindow.Active

From RAGE Multiplayer Wiki
Revision as of 06:35, 20 July 2019 by Kviz (talk | contribs) (Created page with "==Syntax== <pre>bool HtmlWindow.Active { get; set; }</pre> {{CSharpContainer| <syntaxhighlight lang="C#"> HtmlWindow ShopCEF = new HtmlWindow("package://cef/shop/index.html"...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Syntax

bool HtmlWindow.Active { get; set; }


C# Syntax

HtmlWindow ShopCEF = new HtmlWindow("package://cef/shop/index.html");

private void openUI() {
    ShopCEF.Active = true;
    Rage.Ui.Cursor.Visable = true;
    RAGE.Game.Entity.FreezeEntityPosition(Player.LocalPlayer.Handle, true);
}

private void closeUI() {
    ShopCEF.Active = false;
    Rage.Ui.Cursor.Visable = false;
    RAGE.Game.Entity.FreezeEntityPosition(Player.LocalPlayer.Handle, false);
}