fix pay popups for shops with no logo

This commit is contained in:
jimathy
2022-04-06 22:18:38 +01:00
committed by GitHub
parent 644294546e
commit a63b40c11f

View File

@@ -63,6 +63,7 @@ RegisterNetEvent('jim-payments:Tickets:Menu', function()
end)
RegisterNetEvent("jim-payments:client:PayPopup", function(amount, biller, billtype, img)
if img == nil then img = "" end
exports['qb-menu']:openMenu({
{ isMenuHeader = true, header = img.."🧾 "..PlayerJob.label.." Payment 🧾", txt = "Do you want accept the payment?" },
{ isMenuHeader = true, header = "", txt = billtype:gsub("^%l", string.upper).." Payment: $"..amount },
@@ -71,4 +72,4 @@ RegisterNetEvent("jim-payments:client:PayPopup", function(amount, biller, billty
end)
RegisterNetEvent('jim-payments:Tickets:Sell:yes', function() TriggerServerEvent('jim-payments:Tickets:Sell') end)
RegisterNetEvent('jim-payments:Tickets:Sell:no', function() exports['qb-menu']:closeMenu() end)
RegisterNetEvent('jim-payments:Tickets:Sell:no', function() exports['qb-menu']:closeMenu() end)