diff --git a/lua/autorun/sh_glide.lua b/lua/autorun/sh_glide.lua index 0ea0ea25..26d8775e 100644 --- a/lua/autorun/sh_glide.lua +++ b/lua/autorun/sh_glide.lua @@ -266,9 +266,15 @@ do local cvarDeveloper = GetConVar( "developer" ) isDeveloperActive = cvarDeveloper:GetBool() - timer.Create( "Glide.CheckDeveloperConvar", 1, 0, function() - isDeveloperActive = cvarDeveloper:GetBool() - end ) + if CLIENT then + cvars.AddChangeCallback( "developer", function( _, _, newValue ) + isDeveloperActive = tobool( newValue ) + end ) + else + timer.Create( "Glide.CheckDeveloperConvar", 1, 0, function() + isDeveloperActive = cvarDeveloper:GetBool() + end ) + end end function Glide.PrintDev( str, ... )