mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 01:08:57 +00:00
Change back to compound operators
This commit is contained in:
@@ -83,7 +83,7 @@ function QBCore.Functions.GetPlayersOnDuty(job)
|
||||
if Player.PlayerData.job.name == job then
|
||||
if Player.PlayerData.job.onduty then
|
||||
players[#players + 1] = src
|
||||
count = count + 1
|
||||
count += 1
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -96,7 +96,7 @@ function QBCore.Functions.GetDutyCount(job)
|
||||
for _, Player in pairs(QBCore.Players) do
|
||||
if Player.PlayerData.job.name == job then
|
||||
if Player.PlayerData.job.onduty then
|
||||
count = count + 1
|
||||
count += 1
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user