-
Edit
qb-core/server/functions.lua
(Make sure you have a backup of this file first) -
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
-
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.menu
Config.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