mirror of
https://github.com/jimathy/jim-payments.git
synced 2026-11-25 08:48:34 +00: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:
1 parent
4e16ff4e04
commit
b4d185105d
1 file changed
+2
-2
@@ -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