13 lines
275 B
Lua
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
|