mirror of
https://github.com/jimathy/jim-payments.git
synced 2026-08-17 22:36:03 +01:00
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:
4
atms.lua
4
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)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user