From bbf7d7753e7ddf401e8f42f5682eb37d28c8ad5a Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Thu, 28 Dec 2017 13:08:25 +0000 Subject: [PATCH] Added addons and standalone file --- Addons/load.lua | 11 +++++++++++ StandAlone/load.lua | 11 +++++++++++ control.lua | 8 ++++++-- 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 Addons/load.lua create mode 100644 StandAlone/load.lua diff --git a/Addons/load.lua b/Addons/load.lua new file mode 100644 index 00000000..0cd6ac7e --- /dev/null +++ b/Addons/load.lua @@ -0,0 +1,11 @@ +--[[ +Explosive Gaming + +This file can be used with permission but this and the credit below must remain in the file. +Contact a member of management on our discord to seek permission to use our code. +Any changes that you may make to the code are yours but that does not make the script yours. +Discord: https://discord.gg/r6dC2uK +]] +--Please Only Edit Below This Line----------------------------------------------------------- + +-- 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 new file mode 100644 index 00000000..0cd6ac7e --- /dev/null +++ b/StandAlone/load.lua @@ -0,0 +1,11 @@ +--[[ +Explosive Gaming + +This file can be used with permission but this and the credit below must remain in the file. +Contact a member of management on our discord to seek permission to use our code. +Any changes that you may make to the code are yours but that does not make the script yours. +Discord: https://discord.gg/r6dC2uK +]] +--Please Only Edit Below This Line----------------------------------------------------------- + +-- this file will just contain all the diffrent requires \ No newline at end of file diff --git a/control.lua b/control.lua index 8f675ea4..f121a443 100644 --- a/control.lua +++ b/control.lua @@ -30,7 +30,7 @@ Color, Game, Event = require('/StdLib/load'){'Color','Game','Event'} -- loads the ExpLib, functions are plased into the lua global local ExpLib = require 'ExpLib' ExpLib._unpack_to_G(ExpLib) -_G.discord_emit = nil -- un-comment this line if you are not using the json.data +--_G.discord_emit = nil -- un-comment this line if you are not using the json.data -- loads the ExpCore files these are need in order to run the other addons Ranking, Server, Gui = require('/ExpCore/load'){'Ranking','Server','Gui'} @@ -42,4 +42,8 @@ require('/ExpCore/ranks') -- this loads any edits that are not need in core pcall as file may not be preset pcall(require,'/Addons/playerRanks') -- this makes sure that all the little details are cleaned up -Ranking._auto_edit_ranks() \ No newline at end of file +Ranking._auto_edit_ranks() +-- this loads all the addons +pcall(require,'Addons/load') +-- this loads anything that does not use ExpCore (sourse given in the file) +pcall(require,'StandAlone/load') \ No newline at end of file