13 lines
300 B
Lua
Raw Normal View History

if game:issingleplayer() or (Engine.InFrontend()) then
2023-01-27 23:34:16 +01:00
return
end
local getclasscount = Cac.GetCustomClassCount
Cac.GetCustomClassCount = function(...)
local value = Engine.GetDvarBool("sv_disableCustomClasses")
if (value) then
return 0
end
return getclasscount(...)
end