mirror of
https://github.com/qbcore-fivem/qb-core.git
synced 2026-08-29 01:08:57 +00:00
Merge branch 'main' into main
This commit is contained in:
@@ -395,7 +395,10 @@ function QBCore.Functions.CreateVehicle(source, model, vehtype, coords, warp)
|
||||
end
|
||||
|
||||
function PaycheckInterval()
|
||||
if not next(QBCore.Players) then return end
|
||||
if not next(QBCore.Players) then
|
||||
SetTimeout(QBCore.Config.Money.PayCheckTimeOut * (60 * 1000), PaycheckInterval) -- Prevent paychecks from stopping forever once 0 players
|
||||
return
|
||||
end
|
||||
for _, Player in pairs(QBCore.Players) do
|
||||
if not Player then return end
|
||||
local payment = QBShared.Jobs[Player.PlayerData.job.name]['grades'][tostring(Player.PlayerData.job.grade.level)].payment
|
||||
|
||||
+1
-1
@@ -102,7 +102,7 @@ function Locale:t(key, subs)
|
||||
-- At this point we know whether the phrase does not exist for this key
|
||||
else
|
||||
if self.warnOnMissing then
|
||||
print(('^3Warning: Missing phrase for key: "%s"'):format(key))
|
||||
print(('^3Warning: Missing phrase for key: "%s"^0'):format(key))
|
||||
end
|
||||
if self.fallback then
|
||||
return self.fallback:t(key, subs)
|
||||
|
||||
+5
-1
@@ -85,7 +85,11 @@ function QBShared.SetDefaultVehicleExtras(vehicle, config)
|
||||
end
|
||||
|
||||
for id, enabled in pairs(config) do
|
||||
QBShared.ChangeVehicleExtra(vehicle, tonumber(id), type(enabled) == 'boolean' and enabled or true)
|
||||
if type(enabled) ~= 'boolean' then
|
||||
enabled = true
|
||||
end
|
||||
|
||||
QBShared.ChangeVehicleExtra(vehicle, tonumber(id), enabled)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user