From d578b1a083ad457527aaa1c066d79db4c9e62019 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Wed, 8 Mar 2023 12:07:01 -0600 Subject: [PATCH] House stuff --- scripts/client/house.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/client/house.js b/scripts/client/house.js index 720931f7..5f633e25 100644 --- a/scripts/client/house.js +++ b/scripts/client/house.js @@ -8,7 +8,7 @@ // =========================================================================== class HouseData { - constructor(houseId, description, entrancePosition, blipModel, pickupModel, hasInterior) { + constructor(houseId, description, entrancePosition, blipModel, pickupModel, hasInterior, locked) { this.index = -1; this.houseId = houseId; this.description = description; @@ -19,14 +19,14 @@ class HouseData { this.rentPrice = 0; this.buyPrice = 0; this.blipId = -1; - this.locked = false; + this.locked = locked; } } // =========================================================================== function receiveHouseFromServer(houseId, isDeleted, description, entrancePosition, blipModel, pickupModel, buyPrice, rentPrice, hasInterior, locked) { - logToConsole(LOG_DEBUG, `[V.RP.House] Received house ${houseId} (${name}) from server`); + logToConsole(LOG_DEBUG, `[V.RP.House] Received house ${houseId} (${description}) from server`); if (!areServerElementsSupported() || getGame() == V_GAME_MAFIA_ONE || getGame() == V_GAME_GTA_IV) { if (isDeleted == true) { @@ -96,7 +96,7 @@ function receiveHouseFromServer(houseId, isDeleted, description, entrancePositio } } else { logToConsole(LOG_DEBUG, `[V.RP.House] House ${houseId} doesn't exist. Adding ...`); - let tempHouseData = new HouseData(houseId, description, entrancePosition, blipModel, pickupModel, hasInterior); + let tempHouseData = new HouseData(houseId, description, entrancePosition, blipModel, pickupModel, hasInterior, locked); if (blipModel != -1) { let blipId = createGameBlip(tempHouseData.blipModel, tempHouseData.entrancePosition, "House"); if (blipId != -1) {