target hotfix

delayed the loading of the qb-target to help loading of the jobroles table
This commit is contained in:
jimathy
2022-02-05 16:10:11 +00:00
committed by GitHub
parent 00c022e966
commit 63cf7f972d

View File

@@ -28,6 +28,7 @@ AddEventHandler('onResourceStart', function(resource) if GetCurrentResourceName(
Citizen.CreateThread(function()
local jobroles = {}
for k, v in pairs(Config.Jobs) do jobroles[tostring(k)] = 0 end
Wait(500)
exports['qb-target']:AddBoxZone("JimBank", vector3(251.75, 222.17, 106.2), 0.6, 2.0, { name="JimBank", heading = 340.0, debugPoly=false, minZ = 105.75, maxZ = 107.29, },
{ options = { { type = 'server', event = "jim-payments:Tickets:Sell", icon = "fas fa-receipt", label = "Cash in Receipts", job = jobroles }, },
distance = 2.0
@@ -49,4 +50,4 @@ RegisterNetEvent('jim-payments:client:Charge', function()
TriggerServerEvent('jim-payments:server:Charge', dialog.citizen, dialog.price, dialog.billtype)
end
end)
end)
end)