Skip to main content

CounterMakeHUDVisible

Description

Turns on the counter at the bottom-right of the screen.
By default, the max amount is set to 10 unless overriden with CounterSetMax.
This will override the current state of its visibility, even if previously turned off with ToggleHUDComponentVisibility.

function CounterMakeHUDVisible(visibility, maxvisibility) --[[ ... ]] end

Parameters

  • visibility: boolean - Whether to display the counter HUD in general
  • maxvisibility: boolean - Whether to show the maximum value alongside the current count (irrelevant if using CounterUseMeter)

Return Values

...

Example

(Assumes the current max is 10)

CounterMakeHUDVisible(true, true) -- will display "0/10".
CounterMakeHUDVisible(true, false) -- will display "0".

See Also