1
0
Fork 0
forked from Simnation/Main
This commit is contained in:
Nordi98 2025-08-05 15:51:14 +02:00
parent bb5b4ae2f0
commit e876d31e05
2 changed files with 3 additions and 2 deletions

View file

@ -430,6 +430,7 @@ function ViewBills()
lib.showContext('billing_menu') lib.showContext('billing_menu')
end end
-- Helper function to get nearby players -- Helper function to get nearby players
function GetNearbyPlayers() function GetNearbyPlayers()
local playerPed = PlayerPedId() local playerPed = PlayerPedId()

View file

@ -445,8 +445,8 @@ RegisterNetEvent('QBCore:Server:PlayerLoaded', function()
end end
end) end)
-- Alternative hook method if you can't modify ps-banking -- Hook into ps-banking bill payments
-- This listens for the MySQL query that deletes a bill (which happens when a bill is paid) -- This is crucial for handling payments made through ps-banking interface
AddEventHandler('oxmysql:query', function(query, params) AddEventHandler('oxmysql:query', function(query, params)
if string.find(query, "DELETE FROM ps_banking_bills WHERE id = ?") then if string.find(query, "DELETE FROM ps_banking_bills WHERE id = ?") then
-- This is likely a bill payment -- This is likely a bill payment