Move local money
This commit is contained in:
@@ -104,7 +104,6 @@ let serverData = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let localPlayerMoney = 0;
|
let localPlayerMoney = 0;
|
||||||
let localPlayerMoneyInterval = null;
|
|
||||||
|
|
||||||
let currencyString = "${AMOUNT}";
|
let currencyString = "${AMOUNT}";
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
Reference in New Issue
Block a user