Version Bump + small formatting changes

This commit is contained in:
Jim Shield
2022-05-21 11:36:51 +01:00
committed by GitHub
parent c3d6425476
commit c63fbc7144
6 changed files with 25 additions and 22 deletions

View File

@@ -6,8 +6,8 @@ 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
AddEventHandler('onResourceStart', function(resource) if GetCurrentResourceName() ~= resource then return end
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)
QBCore.Commands.Add("cashregister", "Use mobile cash register", {}, false, function(source) TriggerClientEvent("jim-payments:client:Charge", source, {}, true) end)