Debug for missing jobs in config

This commit is contained in:
jimathy
2022-04-25 10:01:51 +01:00
committed by GitHub
parent a1fd2d5974
commit 2e4fcff333

View File

@@ -11,6 +11,10 @@ local function cv(amount)
return formatted
end
AddEventHandler('onResourceStart', function(resource)
if GetCurrentResourceName() == resource then for k, v in pairs(Config.Jobs) do if not QBCore.Shared.Jobs[k] then print("Jim-Payments: Config.Jobs searched for job '"..k.."' and couldn't find it in the Shared") end end end
end)
--QBCore.Commands.Add("cashregister", "Use mobile cash register", {}, false, function(source) TriggerClientEvent("jim-payments:client:Charge", source, true) end)
RegisterServerEvent('jim-payments:Tickets:Give', function(data, biller)