fix pay popups for shops with no logo

This commit is contained in:
jimathy authored and GitHub committed 2022-04-06 22:18:38 +01:00
1 parent 644294546e
commit a63b40c11f
1 file changed
+1
+1
View File
@@ -63,6 +63,7 @@ RegisterNetEvent('jim-payments:Tickets:Menu', function()
end) end)
RegisterNetEvent("jim-payments:client:PayPopup", function(amount, biller, billtype, img) RegisterNetEvent("jim-payments:client:PayPopup", function(amount, biller, billtype, img)
if img == nil then img = "" end
exports['qb-menu']:openMenu({ exports['qb-menu']:openMenu({
{ isMenuHeader = true, header = img.."🧾 "..PlayerJob.label.." Payment 🧾", txt = "Do you want accept the payment?" }, { 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 }, { isMenuHeader = true, header = "", txt = billtype:gsub("^%l", string.upper).." Payment: $"..amount },