From 4cf72b610e6d9b0bb7605e36500fb909903aa77d Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Sun, 11 Dec 2022 02:02:45 -0600 Subject: [PATCH] Paintball players array --- scripts/server/business.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/server/business.js b/scripts/server/business.js index 774f3ed4..668bd1e5 100644 --- a/scripts/server/business.js +++ b/scripts/server/business.js @@ -92,6 +92,8 @@ class BusinessData { this.streamingRadioStation = 0; //this.streamingRadioStationIndex = -1; + this.paintBallPlayers = []; + this.labelHelpType = AGRP_PROPLABEL_INFO_NONE; if (dbAssoc) { @@ -861,6 +863,7 @@ function setBusinessEntranceFeeCommand(command, params, client) { getBusinessData(businessId).entranceFee = entranceFee; getBusinessData(businessId).needsSaved = true; + updateBusinessPickupLabelData(businessId); messagePlayerSuccess(client, `{MAINCOLOUR}You set business {businessBlue}${getBusinessData(businessId).name}{MAINCOLOUR} entrance fee to {ALTCOLOUR}${getCurrencyString(entranceFee)}`); } @@ -2925,6 +2928,7 @@ function updateBusinessPickupLabelData(businessId) { } setEntityData(getBusinessData(businessId).entrancePickup, "agrp.label.price", getBusinessData(businessId).buyPrice, true); + setEntityData(getBusinessData(businessId).entrancePickup, "agrp.label.fee", getBusinessData(businessId).entranceFee, true); } }