Pulling job names from wrong place

This caused errors while trying to access banks or ATMs if you had jobs in the config but not in your shared.

This was left in by mistake
This commit is contained in:
jimathy authored and GitHub committed 2022-02-20 15:09:50 +00:00
1 parent 4e16ff4e04
commit b4d185105d
1 file changed
+2 -2
+2 -2
View File
@@ -142,7 +142,7 @@ RegisterNetEvent('QBCore:Client:OnPlayerLoaded', function() createBlips() end)
Citizen.CreateThread(function()
local bossroles = {}
for k, v in pairs(Config.Jobs) do
for k, v in pairs(QBCore.Shared.Jobs) do
for l, b in pairs(QBCore.Shared.Jobs[tostring(k)].grades) do
if QBCore.Shared.Jobs[tostring(k)].grades[l].isboss == true then
if bossroles[tostring(k)] ~= nil then
@@ -376,4 +376,4 @@ RegisterNetEvent('jim-payments:client:ATM:give', function()
TriggerServerEvent('jim-payments:server:ATM:give', dialog.citizen, dialog.price)
end
end)
end)
end)