forked from Simnation/Main
ed
This commit is contained in:
parent
bb5b4ae2f0
commit
e876d31e05
2 changed files with 3 additions and 2 deletions
|
@ -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()
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue