vCore

vCore

2.6k Downloads

cvar not changing state if tracking bar is hidden then shown

v1nky opened this issue ยท 2 comments

commented
commented

/run print(GetCVar("showHonorAsExperience")) can be used to test function

commented

-- tracking bar
function vCore:HideTrackingBar()
if not vCoreDB.HideTrackingBar then
-- fix if not hiding tracking bar (issue #2)
if event == "PLAYER_ENTERING_WORLD" then
SetCVar("showHonorAsExperience", 0);
end
print(GetCVar("showHonorAsExperience"))
else
-- fix if hiding tracking bar (credit to Draane)
SetCVar("showHonorAsExperience", 1);
StatusTrackingBarManager:Hide()
print(GetCVar("showHonorAsExperience"))
end
end