From 698fd4b54b63d23a165b9b97963e514da4128891 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Wed, 6 Oct 2021 15:44:07 -0500 Subject: [PATCH] Add 1k to biz till on paydays --- scripts/server/timers.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/server/timers.js b/scripts/server/timers.js index 067d1388..f95aadeb 100644 --- a/scripts/server/timers.js +++ b/scripts/server/timers.js @@ -202,6 +202,12 @@ function checkPayDays() { //} } } + + for(let i in getServerData().businesses) { + if(getBusinessData(i).ownerType != VRR_BIZOWNER_NONE && getBusinessData(i).ownerType != VRR_BIZOWNER_PUBLIC && getBusinessData(i).ownerType != VRR_BIZOWNER_FACTION) { + getBusinessData(businessId).till += 1000; + } + } } // ===========================================================================