From 2aeb17c1903b806e26ea7dec654fe3acbaaa4e53 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Wed, 11 Aug 2021 09:42:06 -0500 Subject: [PATCH] Add some stuff to classes --- scripts/server/class.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/scripts/server/class.js b/scripts/server/class.js index 39f2f040..501fe962 100644 --- a/scripts/server/class.js +++ b/scripts/server/class.js @@ -77,6 +77,8 @@ function initClassTable() { this.createBusinessBlips = false; this.createHouseBlips = false; + this.pauseSavingToDatabase = false; + if(dbAssoc) { this.databaseId = dbAssoc["svr_id"]; console.log("1"); @@ -674,7 +676,7 @@ function initClassTable() { this.databaseId = 0; this.clan = 0; this.name = ""; - this.aboveRank = 0; + this.level = 0; this.flags = 0; this.tag = ""; this.enabled = false; @@ -686,7 +688,7 @@ function initClassTable() { this.databaseId = toInteger(dbAssoc["clan_rank_id"]); this.clan = toInteger(dbAssoc["clan_rank_clan"]); this.name = dbAssoc["clan_rank_name"]; - this.aboveRank = toInteger(dbAssoc["clan_rank_above"]); + this.level = toInteger(dbAssoc["clan_rank_level"]); this.flags = toInteger(dbAssoc["clan_rank_flags"]); this.tag = dbAssoc["clan_rank_tag"]; this.enabled = intToBool(toInteger(dbAssoc["clan_enabled"])); @@ -791,6 +793,14 @@ function initClassTable() { this.streamingRadioStation = -1; + // Other/Misc + this.insuranceAccount = 0; + this.fuel = 0; + this.flags = 0; + this.needsSaved = false; + this.whoAdded = 0; + this.whenAdded = 0; + if(dbAssoc) { // General Info this.databaseId = toInteger(dbAssoc["veh_id"]);