Too much for individual commits

This commit is contained in:
Vortrex
2021-01-05 20:14:15 -06:00
parent 0bc357a662
commit 3ef9e554cc
28 changed files with 834 additions and 384 deletions

View File

@@ -11,7 +11,7 @@
let scriptVersion = "1.0";
let serverStartTime = 0;
// ----------------------------------------------------------------------------
// -------------------------------------------------------------------------
let serverData = {
saveDataIntervalTimer: false,
@@ -22,6 +22,10 @@ let serverData = {
families: [],
factions: [],
commands: {},
antiCheat: {
whiteListedGameScripts: [],
blackListedGameScripts: [],
},
policeStations: [
false,
[ // GTA 3
@@ -381,7 +385,7 @@ let serverData = {
],
};
// ----------------------------------------------------------------------------
// -------------------------------------------------------------------------
function initServerData() {
// Pre-allocate translation cache language slots
@@ -391,10 +395,10 @@ function initServerData() {
global.getServerData().translation.cache.fill(translationCacheFrom);
}
// ----------------------------------------------------------------------------
// -------------------------------------------------------------------------
function getServerData() {
return serverData;
}
// ----------------------------------------------------------------------------
// -------------------------------------------------------------------------