112 online 3 members  + Join RP Base  +
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

keep-paycheck
Dependencies PreviewInstallationFor qb-core
  1. Edit qb-core/server/functions.lua
(Make sure you have a backup of this file first)

  1. 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)
end

For ESX
  1. Uncomment ox_lib from fxmanifest.lua:

    shared_scripts {
        "@ox_lib/init.lua", --- this line 
        'locale/locale.lua',
        'locale/en.lua',
        'shared.config.lua',
    }

  1. Set the following values to ox_lib:
  • Config.menu
  • Config.input

  1. Set the Config.target_system to ox_target

  1. Edit es_extended/server/modules/paycheck.lua (Make sure you have a backup of this file first)

  1. 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