From b4d185105dab7c71924088880f76588e435ef49d Mon Sep 17 00:00:00 2001 From: jimathy Date: Sun, 20 Feb 2022 15:09:50 +0000 Subject: [PATCH] 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 --- atms.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atms.lua b/atms.lua index 11ecfa9..0cf1638 100644 --- a/atms.lua +++ b/atms.lua @@ -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) \ No newline at end of file +end)