Add some stuff to classes

This commit is contained in:
Vortrex
2021-08-11 09:42:06 -05:00
parent 078ccdb0db
commit 2aeb17c190

View File

@@ -77,6 +77,8 @@ function initClassTable() {
this.createBusinessBlips = false; this.createBusinessBlips = false;
this.createHouseBlips = false; this.createHouseBlips = false;
this.pauseSavingToDatabase = false;
if(dbAssoc) { if(dbAssoc) {
this.databaseId = dbAssoc["svr_id"]; this.databaseId = dbAssoc["svr_id"];
console.log("1"); console.log("1");
@@ -674,7 +676,7 @@ function initClassTable() {
this.databaseId = 0; this.databaseId = 0;
this.clan = 0; this.clan = 0;
this.name = ""; this.name = "";
this.aboveRank = 0; this.level = 0;
this.flags = 0; this.flags = 0;
this.tag = ""; this.tag = "";
this.enabled = false; this.enabled = false;
@@ -686,7 +688,7 @@ function initClassTable() {
this.databaseId = toInteger(dbAssoc["clan_rank_id"]); this.databaseId = toInteger(dbAssoc["clan_rank_id"]);
this.clan = toInteger(dbAssoc["clan_rank_clan"]); this.clan = toInteger(dbAssoc["clan_rank_clan"]);
this.name = dbAssoc["clan_rank_name"]; 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.flags = toInteger(dbAssoc["clan_rank_flags"]);
this.tag = dbAssoc["clan_rank_tag"]; this.tag = dbAssoc["clan_rank_tag"];
this.enabled = intToBool(toInteger(dbAssoc["clan_enabled"])); this.enabled = intToBool(toInteger(dbAssoc["clan_enabled"]));
@@ -791,6 +793,14 @@ function initClassTable() {
this.streamingRadioStation = -1; 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) { if(dbAssoc) {
// General Info // General Info
this.databaseId = toInteger(dbAssoc["veh_id"]); this.databaseId = toInteger(dbAssoc["veh_id"]);