mirror of
https://github.com/jimathy/jim-payments.git
synced 2026-08-19 07:16:03 +01:00
Update README.md
This commit is contained in:
10
README.md
10
README.md
@@ -18,16 +18,18 @@ To make use of this payment system you need trigger the event
|
|||||||
```jim-payments:client:Charge```
|
```jim-payments:client:Charge```
|
||||||
|
|
||||||
for example with qb-target
|
for example with qb-target
|
||||||
```
|
```lua
|
||||||
exports['qb-target']:AddBoxZone("Receipt", vector3(1589.14, 6458.26, 26.01), 0.6, 0.6, { name="Receipt", heading = 335.0, debugPoly=debugPoly, minZ = 26.01, maxZ = 26.81, },
|
exports['qb-target']:AddBoxZone("Receipt", vector3(1589.14, 6458.26, 26.01), 0.6, 0.6, { name="Receipt", heading = 335.0, debugPoly=debugPoly, minZ = 26.01, maxZ = 26.81, },
|
||||||
{ options = { { event = "jim-payments:client:Charge", icon = "fas fa-credit-card", label = "Charge Customer", job = "popsdiner" } }, distance = 2.0 })
|
{ options = { { event = "jim-payments:client:Charge", icon = "fas fa-credit-card", label = "Charge Customer", job = "popsdiner" } }, distance = 2.0 })
|
||||||
```
|
```
|
||||||
It currently requires you to be on duty to charge someone
|
It currently requires you to be on duty to charge someone
|
||||||
|
|
||||||
|
This does not need to be added to **MY** job scripts, they already have built in support
|
||||||
|
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
To make use of the ticket reward system for workers you need to add the ticket item to your shared items lua:
|
To make use of the ticket reward system for workers you need to add the ticket item to your shared items lua:
|
||||||
```
|
```lua
|
||||||
["payticket"] = {["name"] = "payticket", ["label"] = "Receipt", ["weight"] = 150, ["type"] = "item", ["image"] = "ticket.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Cash these in at the bank!"},
|
["payticket"] = {["name"] = "payticket", ["label"] = "Receipt", ["weight"] = 150, ["type"] = "item", ["image"] = "ticket.png", ["unique"] = false, ["useable"] = false, ["shouldClose"] = false, ["combinable"] = nil, ["description"] = "Cash these in at the bank!"},
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -41,13 +43,13 @@ To get tickets from phone invoices you NEED to add it to the event when a paymen
|
|||||||
For QB-Phone:
|
For QB-Phone:
|
||||||
Go to [qb] > qb-phone > client > main.lua
|
Go to [qb] > qb-phone > client > main.lua
|
||||||
- Around line 645 there should be the PayInvoice NUICallBack
|
- Around line 645 there should be the PayInvoice NUICallBack
|
||||||
- Directly under this line:
|
- Directly *above* this line:
|
||||||
```lua
|
```lua
|
||||||
TriggerServerEvent('qb-phone:server:BillingEmail', data, true)
|
TriggerServerEvent('qb-phone:server:BillingEmail', data, true)
|
||||||
```
|
```
|
||||||
|
|
||||||
- Add this line:
|
- Add this line:
|
||||||
```
|
```lua
|
||||||
TriggerServerEvent('jim-payments:Tickets:Give', data)
|
TriggerServerEvent('jim-payments:Tickets:Give', data)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user