From a63b40c11f624e1d82c55d0a94dbb8d6ddaa67f8 Mon Sep 17 00:00:00 2001 From: jimathy Date: Wed, 6 Apr 2022 22:18:38 +0100 Subject: [PATCH] fix pay popups for shops with no logo --- client.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client.lua b/client.lua index 03f3a3f..abfb57d 100644 --- a/client.lua +++ b/client.lua @@ -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) \ No newline at end of file +RegisterNetEvent('jim-payments:Tickets:Sell:no', function() exports['qb-menu']:closeMenu() end)