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 generalmaxvisibility:boolean- Whether to show the maximum value alongside the current count (irrelevant if usingCounterUseMeter)
Return Values
...
Example
(Assumes the current max is 10)
CounterMakeHUDVisible(true, true) -- will display "0/10".
CounterMakeHUDVisible(true, false) -- will display "0".
See Also
- Game's Native