RAGE.Ui.HtmlWindow.Active

From RAGE Multiplayer Wiki
Revision as of 06:40, 20 July 2019 by Kviz (talk | contribs)

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.Visible = true;
    RAGE.Game.Entity.FreezeEntityPosition(Player.LocalPlayer.Handle, true);
}

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