M2O Scripting APIScripting reference
    Preparing search index…
    Global objectClient API

    Hud

    Hud: {
        hide(): void;
        isVisible(): boolean;
        setVisible(visible: boolean): void;
        show(): void;
    }

    Controls visibility of Mafia II's native heads-up display layer.

    Type Declaration

    • hide: function
    • isVisible: function
      • Checks whether the native gameplay HUD layer is visible.

        Returns boolean

        True when the HUD layer is enabled.

    • setVisible: function
      • Sets visibility of the native gameplay HUD.

        Parameters

        • visible: boolean

          True to show the HUD; false to hide it.

        Returns void

    • show: function