local Entities = {["prop_physics"] = true, ["gmod_light"] = true, ["gmod_lamp"] = true};
hook.Add("OnEntityCreated", "RenderingDistance", function(entity)
    local class = entity:GetClass();
    if (Entities[class]) then
        entity:SetSaveValue("fademindist", 2048);
        entity:SetSaveValue("fademaxdist", 4096);
    end;
end);