From 695b968ff7a2fc79934d2977296cfb7082fba3ad Mon Sep 17 00:00:00 2001 From: jimathy Date: Thu, 21 Apr 2022 19:51:22 +0100 Subject: [PATCH] Update README.md --- README.md | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5693f27..6ecfa8e 100644 --- a/README.md +++ b/README.md @@ -38,15 +38,33 @@ Add the ticket image to your inventory script -------------- To get tickets from phone invoices you NEED to add it to the event when a payment is accepted: +For QB-Phone: Go to [qb] > qb-phone > client > main.lua - Around line 645 there should be the PayInvoice NUICallBack - Directly under this line: - -```TriggerServerEvent('qb-phone:server:BillingEmail', data, true)``` +```lua +TriggerServerEvent('qb-phone:server:BillingEmail', data, true) +``` - Add this line: +``` +TriggerServerEvent('jim-payments:Tickets:Give', data) +``` -```TriggerServerEvent('jim-payments:Tickets:Give', data)``` +For GKSPhone: +Go to gks-phone > server > serverapi.lua + +- Search for the event: ```gksphone:faturapayBill``` +- Under this line: +```lua + Ply.Functions.RemoveMoney('bank', amount, "paid-invoice") +``` + +- Add these lines: +```lua + local data = { society = id.society, amount = amount } + TriggerServerEvent('jim-payments:Tickets:Give', data) +``` --------------