From 3679d688968320673be4ca5718ea3e5f07e48c17 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Thu, 29 Sep 2022 11:09:29 -0500 Subject: [PATCH] Fix clientside houses --- scripts/client/house.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/client/house.js b/scripts/client/house.js index ef809fdb..d84dff36 100644 --- a/scripts/client/house.js +++ b/scripts/client/house.js @@ -20,12 +20,13 @@ class HouseData { this.rentPrice = 0; this.buyPrice = 0; this.blipId = -1; + this.locked = false; } } // =========================================================================== -function receiveHouseFromServer(houseId, description, entrancePosition, blipModel, pickupModel, buyPrice, rentPrice, hasInterior) { +function receiveHouseFromServer(houseId, description, entrancePosition, blipModel, pickupModel, buyPrice, rentPrice, hasInterior, locked) { logToConsole(LOG_DEBUG, `[AGRP.House] Received house ${houseId} (${name}) from server`); if (!areServerElementsSupported() || getGame() == AGRP_GAME_MAFIA_ONE) { @@ -38,6 +39,7 @@ function receiveHouseFromServer(houseId, description, entrancePosition, blipMode houseData.hasInterior = hasInterior; houseData.buyPrice = buyPrice; houseData.rentPrice = rentPrice; + houseData.locked = locked; if (houseData.buyPrice > 0) { houseData.labelInfoType = AGRP_PROPLABEL_INFO_BUYHOUSE;