mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-09-04 09:13:29 +00:00
Merge branch 'main' into main
This commit is contained in:
@@ -173,7 +173,8 @@ function PaycheckInterval()
|
|||||||
if next(QBCore.Players) then
|
if next(QBCore.Players) then
|
||||||
for _, Player in pairs(QBCore.Players) do
|
for _, Player in pairs(QBCore.Players) do
|
||||||
if Player then
|
if Player then
|
||||||
local payment = Player.PlayerData.job.payment
|
local payment = QBShared.Jobs[Player.PlayerData.job.name]['grades'][tostring(Player.PlayerData.job.grade.level)].payment
|
||||||
|
if not payment then payment = Player.PlayerData.job.payment end
|
||||||
if Player.PlayerData.job and payment > 0 and (QBShared.Jobs[Player.PlayerData.job.name].offDutyPay or Player.PlayerData.job.onduty) then
|
if Player.PlayerData.job and payment > 0 and (QBShared.Jobs[Player.PlayerData.job.name].offDutyPay or Player.PlayerData.job.onduty) then
|
||||||
if QBCore.Config.Money.PayCheckSociety then
|
if QBCore.Config.Money.PayCheckSociety then
|
||||||
local account = exports['qb-management']:GetAccount(Player.PlayerData.job.name)
|
local account = exports['qb-management']:GetAccount(Player.PlayerData.job.name)
|
||||||
|
|||||||
Reference in New Issue
Block a user