Bug Fixes

This commit is contained in:
jimathy
2022-04-24 11:06:12 +01:00
committed by GitHub
parent 41c8e3698e
commit d32b191689
4 changed files with 11 additions and 19 deletions

View File

@@ -21,7 +21,9 @@ local function cv(amount)
return formatted
end
local function createBlips()
local bossroles = {}
local gangroles = {}
CreateThread(function()
if Config.Gabz then BankLoc = Config.GabzBankLocations ATMLoc = Config.GabzATMLocations end
if Config.useATM then
if Config.ATMBlips then
@@ -67,15 +69,6 @@ local function createBlips()
end
end
end
end
AddEventHandler('onResourceStart', function(resource) if GetCurrentResourceName() == resource then createBlips() end end)
RegisterNetEvent('QBCore:Client:OnPlayerLoaded', function() createBlips() end)
local bossroles = {}
local gangroles = {}
Citizen.CreateThread(function()
if Config.useATM or Config.useBanks then
for k, v in pairs(QBCore.Shared.Jobs) do ---Grabs the list of jobs
for l, b in pairs(QBCore.Shared.Jobs[tostring(k)].grades) do -- Grabs the list of grades