net.Receive("artery_respondfile",function() local filename = net.ReadString() local filetext = net.ReadString() local dirname = string.GetPathFromFilename(filename) file.CreateDir("artery/client/files/" .. dirname) file.Write("artery/client/files/" .. filename,filetext) CompileString(filetext,filename)() end) net.Receive("artery_loadfile",function() local filename = net.ReadString() local hash = net.ReadUInt(32) local cache = file.Read("artery/client/files/" .. filename,"DATA") if cache == nil then --We don't have this file downloaded! net.Start("artery_requestcsfile") net.WriteString(filename) net.SendToServer() return end local thash = tonumber(util.CRC(cache)) if hash != thash then net.Start("artery_requestcsfile") net.WriteString(filename) net.SendToServer() else CompileString(cache,filename)() end end)