diff --git a/Addons/load.lua b/Addons/load.lua index b51f0192..ce51227b 100644 --- a/Addons/load.lua +++ b/Addons/load.lua @@ -7,10 +7,4 @@ 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/StandAlone/load.lua b/StandAlone/load.lua index 7301ac73..ce51227b 100644 --- a/StandAlone/load.lua +++ b/StandAlone/load.lua @@ -7,10 +7,4 @@ 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 = true -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 eb91bbd4..9bc76fd6 100644 --- a/control.lua +++ b/control.lua @@ -22,6 +22,13 @@ error = function(err) _error(err) end end +-- replaces the base require function +require_return_err = false +_require = require +local function require(path) + local success, err = pcall(_require,path) + if not success and require_return_err then error(err) end +end require("mod-gui") -- loads the stdlib and allows Core Game and Event