diff --git a/Addons/load.lua b/Addons/load.lua index 0cd6ac7e..b51f0192 100644 --- a/Addons/load.lua +++ b/Addons/load.lua @@ -7,5 +7,10 @@ Any changes that you may make to the code are yours but that does not make the s Discord: https://discord.gg/r6dC2uK ]] --Please Only Edit Below This Line----------------------------------------------------------- - +local return_err = false +local _require = require +local function require(path) + local success, err = pcall(_require,path) + if not success and return_err then error(err) end +end -- this file will just contain all the diffrent requires \ No newline at end of file diff --git a/control.lua b/control.lua index f121a443..6cbaf9df 100644 --- a/control.lua +++ b/control.lua @@ -44,6 +44,7 @@ pcall(require,'/Addons/playerRanks') -- this makes sure that all the little details are cleaned up Ranking._auto_edit_ranks() -- this loads all the addons -pcall(require,'Addons/load') +local success,err = pcall(require,'Addons/load') +if not success then error(err) end -- this loads anything that does not use ExpCore (sourse given in the file) pcall(require,'StandAlone/load') \ No newline at end of file