SHARE
TWEET

Untitled

a guest Nov 9th, 2015 227 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. GM.Version = "2.5.1"
  2. GM.Name = "DarkRP"
  3. GM.Author = "Bread"
  4.  
  5. DeriveGamemode("sandbox")
  6. local function LoadModules()
  7.         local root = GM.FolderName.."/gamemode/modules/"
  8.  
  9.         local _, folders = file.Find(root.."*", "LUA")
  10.  
  11.         for _, folder in SortedPairs(folders, true) do
  12.                 if DarkRP.disabledDefaults["modules"][folder] then continue end
  13.  
  14.                 for _, File in SortedPairs(file.Find(root .. folder .."/sh_*.lua", "LUA"), true) do
  15.                         if File == "sh_interface.lua" then continue end
  16.                         include(root.. folder .. "/" ..File)
  17.                 end
  18.                 for _, File in SortedPairs(file.Find(root .. folder .."/cl_*.lua", "LUA"), true) do
  19.                         if File == "cl_interface.lua" then continue end
  20.                         include(root.. folder .. "/" ..File)
  21.                 end
  22.         end
  23. end
  24.  
  25. GM.Config = {} -- config table
  26. GM.NoLicense = GM.NoLicense or {}
  27.  
  28. include("config/config.lua")
  29. include("libraries/fn.lua")
  30. include("libraries/interfaceloader.lua")
  31. include("libraries/disjointset.lua")
  32.  
  33. include("libraries/modificationloader.lua")
  34. LoadModules()
  35.  
  36. DarkRP.DARKRP_LOADING = true
  37. include("config/jobrelated.lua")
  38. include("config/addentities.lua")
  39. include("config/ammotypes.lua")
  40. DarkRP.DARKRP_LOADING = nil
  41.  
  42. DarkRP.finish()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top