From e876d31e0563692ed65ea31e3acd96a06a8230a3 Mon Sep 17 00:00:00 2001 From: Nordi98 Date: Tue, 5 Aug 2025 15:51:14 +0200 Subject: [PATCH] ed --- resources/[tools]/nordi_billing/billing_client.lua | 1 + resources/[tools]/nordi_billing/billing_server.lua | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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