Add trigger arrays

This commit is contained in:
Vortrex
2022-04-04 02:11:41 -05:00
parent d4d63d63e3
commit 94e5644edf
2 changed files with 9 additions and 0 deletions

View File

@@ -549,6 +549,8 @@ class BusinessData {
this.labelHelpType = VRR_PROPLABEL_INFO_NONE;
this.triggers = [];
if(dbAssoc) {
this.databaseId = toInteger(dbAssoc["biz_id"]);
this.name = toString(dbAssoc["biz_name"]);
@@ -683,6 +685,8 @@ class HouseData {
this.streamingRadioStation = -1;
this.triggers = [];
if(dbAssoc) {
this.databaseId = toInteger(dbAssoc["house_id"]);
this.description = toString(dbAssoc["house_description"]);
@@ -949,6 +953,8 @@ class VehicleData {
this.lastActiveTime = false;
this.triggers = [];
if(dbAssoc) {
// General Info
this.databaseId = toInteger(dbAssoc["veh_id"]);
@@ -1511,6 +1517,8 @@ class NPCData {
rightFoot: [0,0],
};
this.triggers = [];
if(dbAssoc) {
this.databaseId = toInteger(dbAssoc["npc_id"]);
this.serverId = toInteger(dbAssoc["npc_server"]);

View File

@@ -31,6 +31,7 @@ let serverData = {
localeStrings: {},
cachedTranslations: [],
cachedTranslationFrom: [],
triggers: [],
};
// ===========================================================================