diff --git a/resources/[tools]/nordi_billing/billing_client.lua b/resources/[tools]/nordi_billing/billing_client.lua index b4585121c..52f388cfe 100644 --- a/resources/[tools]/nordi_billing/billing_client.lua +++ b/resources/[tools]/nordi_billing/billing_client.lua @@ -430,6 +430,7 @@ function ViewBills() lib.showContext('billing_menu') end + -- Helper function to get nearby players function GetNearbyPlayers() local playerPed = PlayerPedId() diff --git a/resources/[tools]/nordi_billing/billing_server.lua b/resources/[tools]/nordi_billing/billing_server.lua index 462dd57ae..f64f7cf09 100644 --- a/resources/[tools]/nordi_billing/billing_server.lua +++ b/resources/[tools]/nordi_billing/billing_server.lua @@ -445,8 +445,8 @@ RegisterNetEvent('QBCore:Server:PlayerLoaded', function() end end) --- Alternative hook method if you can't modify ps-banking --- This listens for the MySQL query that deletes a bill (which happens when a bill is paid) +-- Hook into ps-banking bill payments +-- This is crucial for handling payments made through ps-banking interface AddEventHandler('oxmysql:query', function(query, params) if string.find(query, "DELETE FROM ps_banking_bills WHERE id = ?") then -- This is likely a bill payment