Revert "Use new inhouse/inbiz data"

This reverts commit 445cd93baa.
This commit is contained in:
Vortrex
2021-04-23 19:37:46 -05:00
parent bc3c5fc19c
commit f9ee991ca9

View File

@@ -146,7 +146,7 @@ function enterExitPropertyCommand(command, params, client) {
}, 2000); }, 2000);
}, 1000); }, 1000);
}, 1100); }, 1100);
getPlayerData(client).inHouse = false; removeEntityData(client, "ag.inHouse");
return true; return true;
} }
} }
@@ -177,7 +177,7 @@ function enterExitPropertyCommand(command, params, client) {
}, 2000); }, 2000);
}, 1000); }, 1000);
}, 1100); }, 1100);
getPlayerData(client).inBusiness = false; removeEntityData(client, "ag.inBusiness");
logToConsole(LOG_DEBUG, `[Asshat.Misc] ${getPlayerDisplayForConsole(client)} entered business ${inBusiness.name}[${inBusiness.index}/${inBusiness.databaseId}]`); logToConsole(LOG_DEBUG, `[Asshat.Misc] ${getPlayerDisplayForConsole(client)} entered business ${inBusiness.name}[${inBusiness.index}/${inBusiness.databaseId}]`);
return true; return true;
} }
@@ -212,8 +212,8 @@ function enterExitPropertyCommand(command, params, client) {
fadeCamera(client, true, 1.0); fadeCamera(client, true, 1.0);
getPlayerData(client).pedState = AG_PEDSTATE_READY; getPlayerData(client).pedState = AG_PEDSTATE_READY;
}, 1000); }, 1000);
}, 1100);x }, 1100);
getPlayerData(client).inBusiness = closestBusinessId; setEntityData(client, "ag.inBusiness", closestBusinessId);
return true; return true;
} }
} }
@@ -249,7 +249,7 @@ function enterExitPropertyCommand(command, params, client) {
getPlayerData(client).pedState = AG_PEDSTATE_READY; getPlayerData(client).pedState = AG_PEDSTATE_READY;
}, 1000); }, 1000);
}, 1100); }, 1100);
getPlayerData(client).inHouse = closestHouseId; setEntityData(client, "ag.inHouse", closestHouseId);
return true; return true;
} }
} }