h1-mod/data/cdata/ui_scripts/classes/__init__.lua
2023-01-27 23:34:16 +01:00

13 lines
275 B
Lua

if (Engine.InFrontend()) then
return
end
local getclasscount = Cac.GetCustomClassCount
Cac.GetCustomClassCount = function(...)
local value = Engine.GetDvarBool("sv_disableCustomClasses")
if (value) then
return 0
end
return getclasscount(...)
end