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)