mirror of
https://github.com/jimathy/jim-payments.git
synced 2026-08-16 22:06:02 +01:00
target hotfix
delayed the loading of the qb-target to help loading of the jobroles table
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user