mirror of
https://github.com/jimathy/jim-payments.git
synced 2026-08-18 23: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()
|
Citizen.CreateThread(function()
|
||||||
local jobroles = {}
|
local jobroles = {}
|
||||||
for k, v in pairs(Config.Jobs) do jobroles[tostring(k)] = 0 end
|
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, },
|
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 }, },
|
{ options = { { type = 'server', event = "jim-payments:Tickets:Sell", icon = "fas fa-receipt", label = "Cash in Receipts", job = jobroles }, },
|
||||||
distance = 2.0
|
distance = 2.0
|
||||||
|
|||||||
Reference in New Issue
Block a user