Move local money

This commit is contained in:
Vortrex
2023-03-08 22:21:26 -06:00
parent 8728d1a324
commit fd02988d5d
2 changed files with 5 additions and 1 deletions

View File

@@ -104,7 +104,6 @@ let serverData = {
}; };
let localPlayerMoney = 0; let localPlayerMoney = 0;
let localPlayerMoneyInterval = null;
let currencyString = "${AMOUNT}"; let currencyString = "${AMOUNT}";

View File

@@ -7,6 +7,10 @@
// TYPE: Client (JavaScript) // TYPE: Client (JavaScript)
// =========================================================================== // ===========================================================================
let localPlayerMoneyInterval = null;
// ===========================================================================
function initTimersScript() { function initTimersScript() {
logToConsole(LOG_DEBUG, "[V.RP.Timers]: Initializing timer script ..."); logToConsole(LOG_DEBUG, "[V.RP.Timers]: Initializing timer script ...");
logToConsole(LOG_DEBUG, "[V.RP.Timers]: Timers script initialized!"); logToConsole(LOG_DEBUG, "[V.RP.Timers]: Timers script initialized!");
@@ -15,6 +19,7 @@ function initTimersScript() {
// =========================================================================== // ===========================================================================
function initTimers() { function initTimers() {
localPlayerMoneyInterval = setInterval(updateLocalPlayerMoney, 1000 * 5);
} }
// =========================================================================== // ===========================================================================