Check if biz has items to buy before showing help tip

This commit is contained in:
Vortrex
2021-07-25 22:17:26 -05:00
parent d1e9a46e76
commit 492e84baec

View File

@@ -215,6 +215,9 @@ function enterExitPropertyCommand(command, params, client) {
setTimeout(function() {
fadeCamera(client, true, 1.0);
getPlayerData(client).pedState = VRR_PEDSTATE_READY;
if(doesBusinessHaveAnyItemsToBuy(closestBusinessId)) {
messagePlayerInfo(client, "Use /buy to purchase items from this business");
}
setTimeout(function() {
if(closestBusiness.streamingRadioStation != -1) {
if(getPlayerData(client).streamingRadioStation != closestBusiness.streamingRadioStation) {