public static bool InventoryBackpackVisible() { bool InvVisible = false; try { InvVisible = UIElements.InventoryWindow.IsVisible; } catch { } return InvVisible; }