FreeScriptQBCoreESX
keep-paycheck
by swkeep · version 2025.06.12 · updated 3 days ago
No reviews yet
- Downloads
- 0
- Reviews
- 0
- Size
- 25 KB
- Code check
- Clean
- Licence
- GPL-3.0
- Released
- Nov 2026
Qbcore and ESX alternative paycheck system
Dependencies
PreviewInstallationFor qb-core
For ESX
- Edit
qb-core/server/functions.lua
- Replace the code in
PaycheckInterval()with:
function PaycheckInterval()
local pay_check_society = QBCore.Config.Money.PayCheckSociety
if GetResourceState('keep-paycheck') == "started" and type(exports['keep-paycheck'].QbcorePaycheckHandler) == 'function' then
exports['keep-paycheck']:QbcorePaycheckHandler(QBCore.Players, QBShared.Jobs, pay_check_society)
else
warn("keep-paycheck is not started!")
end
SetTimeout(QBCore.Config.Money.PayCheckTimeOut * (60 * 1000), PaycheckInterval)
endFor ESX
- Uncomment ox_lib from
fxmanifest.lua:
shared_scripts {
"@ox_lib/init.lua", --- this line
'locale/locale.lua',
'locale/en.lua',
'shared.config.lua',
}
- Set the following values to
ox_lib:
Config.menuConfig.input
- Set the Config.target_system to
ox_target
- Edit
es_extended/server/modules/paycheck.lua(Make sure you have a backup of this file first)
- Replace the code in
StartPayCheck()with:
function StartPayCheck()
CreateThread(function()
while true do
Wait(Config.PaycheckInterval)
local society_payouts = Config.EnableSocietyPayouts
local Offduty_multiplier = Config.OffDutyPaycheckMultiplier
if GetResourceState('keep-paycheck') == "started" and type(exports['keep-paycheck'].ESXPaycheckHandler) == 'function' then
exports['keep-paycheck']:ESXPaycheckHandler(ESX.Players, society_payouts, Offduty_multiplier)
else
warn("keep-paycheck is not started!")
end
end
end)
end