From f9ee991ca94a837b1445eabe4f83e05ebaecf1d1 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Fri, 23 Apr 2021 19:37:46 -0500 Subject: [PATCH] Revert "Use new inhouse/inbiz data" This reverts commit 445cd93baa6f0c71175c70becda0e8ad13cd8dd6. --- scripts/server/misc.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/server/misc.js b/scripts/server/misc.js index 1bcd3183..c386d771 100644 --- a/scripts/server/misc.js +++ b/scripts/server/misc.js @@ -146,7 +146,7 @@ function enterExitPropertyCommand(command, params, client) { }, 2000); }, 1000); }, 1100); - getPlayerData(client).inHouse = false; + removeEntityData(client, "ag.inHouse"); return true; } } @@ -177,7 +177,7 @@ function enterExitPropertyCommand(command, params, client) { }, 2000); }, 1000); }, 1100); - getPlayerData(client).inBusiness = false; + removeEntityData(client, "ag.inBusiness"); logToConsole(LOG_DEBUG, `[Asshat.Misc] ${getPlayerDisplayForConsole(client)} entered business ${inBusiness.name}[${inBusiness.index}/${inBusiness.databaseId}]`); return true; } @@ -212,8 +212,8 @@ function enterExitPropertyCommand(command, params, client) { fadeCamera(client, true, 1.0); getPlayerData(client).pedState = AG_PEDSTATE_READY; }, 1000); - }, 1100);x - getPlayerData(client).inBusiness = closestBusinessId; + }, 1100); + setEntityData(client, "ag.inBusiness", closestBusinessId); return true; } } @@ -249,7 +249,7 @@ function enterExitPropertyCommand(command, params, client) { getPlayerData(client).pedState = AG_PEDSTATE_READY; }, 1000); }, 1100); - getPlayerData(client).inHouse = closestHouseId; + setEntityData(client, "ag.inHouse", closestHouseId); return true; } }