From d87dfb0b05026fcb2bab3adf5afc96fb5320ac7d Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Sat, 4 Mar 2023 23:43:56 -0600 Subject: [PATCH] Save next payday (in case of crash) --- scripts/server/subaccount.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/server/subaccount.js b/scripts/server/subaccount.js index 7b26d7a6..436a75b3 100644 --- a/scripts/server/subaccount.js +++ b/scripts/server/subaccount.js @@ -46,6 +46,7 @@ class SubAccountData { this.inHouse = 0; this.inBusiness = 0; this.accent = ""; + this.payDayAmount = 0; this.bodyParts = { hair: [0, 0], @@ -338,6 +339,7 @@ function saveSubAccountToDatabase(subAccountData) { ["sacct_svr_hd_prop_leftfoot_texture", subAccountData.bodyProps.leftFoot[1]], ["sacct_svr_hd_prop_rightfoot_model", subAccountData.bodyProps.rightFoot[0]], ["sacct_svr_hd_prop_rightfoot_texture", subAccountData.bodyProps.rightFoot[1]], + ["sacct_svr_payday", subAccountData.payDayAmount], ]; dbQuery = null;