28 lines
1.2 KiB
JavaScript
28 lines
1.2 KiB
JavaScript
// ===========================================================================
|
|
// Asshat-Gaming Roleplay
|
|
// https://github.com/VortrexFTW/gtac_asshat_rp
|
|
// Copyright (c) 2021 Asshat-Gaming (https://asshatgaming.com)
|
|
// ===========================================================================
|
|
// FILE: economy.js
|
|
// DESC: Provides economy/financial utils, functions and usage
|
|
// TYPE: Server (JavaScript)
|
|
// ===========================================================================
|
|
|
|
function initEconomyScript() {
|
|
logToConsole(LOG_INFO, "[Asshat.Economy]: Initializing economy script ...");
|
|
logToConsole(LOG_INFO, "[Asshat.Economy]: Economy script initialized successfully!");
|
|
}
|
|
|
|
// ===========================================================================
|
|
|
|
function getTimeDisplayUntilPlayerPayDay(client) {
|
|
return getTimeDifferenceDisplay(sdl.ticks-getPlayerData(client).payDayTickStart);
|
|
}
|
|
|
|
// ===========================================================================
|
|
|
|
function applyServerInflationMultiplier(value) {
|
|
return toInteger(Math.round(value*getServerConfig().inflationMultiplier))
|
|
}
|
|
|
|
// ===========================================================================
|