That doesn’t really solve anything.
local function example()
local old = cvars.OnConVarChanged;
rawset(cvars, "OnConVarChanged", function() end);
rawset(cvars, "OnConVarChanged", old);
[editline]10th September 2014[/editline]
That being said, what Leystryku posted is pretty irrelevant since as I could only touch that table when my scripts have loaded, which according to the scenario is after I’ve forced the cvar.
Besides, if I were to develop a module that forces sv_allowcslua, I don’t think I’d call the SetValue function on the cvar, rather just set the cvar’s value by member (that doesn’t call callbacks).