Skip to content

Commit 73e80fb

Browse files
authored
Merge branch 'main' into main
2 parents 1ce2d44 + fac67bd commit 73e80fb

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

server/functions.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,10 @@ function QBCore.Functions.CreateVehicle(source, model, vehtype, coords, warp)
395395
end
396396

397397
function PaycheckInterval()
398-
if not next(QBCore.Players) then return end
398+
if not next(QBCore.Players) then
399+
SetTimeout(QBCore.Config.Money.PayCheckTimeOut * (60 * 1000), PaycheckInterval) -- Prevent paychecks from stopping forever once 0 players
400+
return
401+
end
399402
for _, Player in pairs(QBCore.Players) do
400403
if not Player then return end
401404
local payment = QBShared.Jobs[Player.PlayerData.job.name]['grades'][tostring(Player.PlayerData.job.grade.level)].payment

shared/locale.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function Locale:t(key, subs)
102102
-- At this point we know whether the phrase does not exist for this key
103103
else
104104
if self.warnOnMissing then
105-
print(('^3Warning: Missing phrase for key: "%s"'):format(key))
105+
print(('^3Warning: Missing phrase for key: "%s"^0'):format(key))
106106
end
107107
if self.fallback then
108108
return self.fallback:t(key, subs)

shared/main.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,11 @@ function QBShared.SetDefaultVehicleExtras(vehicle, config)
8585
end
8686

8787
for id, enabled in pairs(config) do
88-
QBShared.ChangeVehicleExtra(vehicle, tonumber(id), type(enabled) == 'boolean' and enabled or true)
88+
if type(enabled) ~= 'boolean' then
89+
enabled = true
90+
end
91+
92+
QBShared.ChangeVehicleExtra(vehicle, tonumber(id), enabled)
8993
end
9094
end
9195

0 commit comments

Comments
 (0)