Skip to content

Commit

Permalink
ox_core invoices docs
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeWasTakenn committed Sep 1, 2024
1 parent 8251edb commit 65935e4
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 0 deletions.
19 changes: 19 additions & 0 deletions pages/ox_core/Classes/Server/OxPlayer/createInvoice.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: createInvoice
---

# OxPlayer.createInvoice

Description..

```lua
player.createInvoice(invoice: Omit<OxCreateInvoice, 'actorId'>): Promise<number | "no_charId" | "no_permission" | "no_target_account" | undefined>

- fromAccount: number;
- toAccount: number;
- amount: number;
- message: string;
- dueDate: string;
- Date string (i.e YYYY-MM-DD HH:MM)

```
11 changes: 11 additions & 0 deletions pages/ox_core/Classes/Server/OxPlayer/payInvoice.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: payInvoice
---

# OxPlayer.payInvoice

Description..

```lua
player.payInvoice(invoiceId: number): Promise<number | false | void | "no_charId" | "no_permission" | "no_balance" | "no_invoice" | "invoice_paid" | "insufficient_balance">
```
20 changes: 20 additions & 0 deletions pages/ox_core/Functions/Server/CreateAccountInvoice.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
title: CreateAccountInvoice
---

# Ox.CreateAccountInvoice

Description..

```lua
Ox.CreateAccountInvoice(invoice: OxCreateInvoice): Promise<number | "no_charId" | "no_permission" | "no_target_account">

- actorId: number;
- fromAccount: number;
- toAccount: number;
- amount: number;
- message: string;
- dueDate: string;
- Date string (i.e YYYY-MM-DD HH:MM)

```
11 changes: 11 additions & 0 deletions pages/ox_core/Functions/Server/DeleteAccountInvoice.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: DeleteAccountInvoice
---

# Ox.DeleteAccountInvoice

Description..

```lua
Ox.DeleteAccountInvoice(invoiceId: number): Promise<number>
```
11 changes: 11 additions & 0 deletions pages/ox_core/Functions/Server/PayAccountInvoice.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: PayAccountInvoice
---

# Ox.PayAccountInvoice

Description..

```lua
Ox.PayAccountInvoice(invoiceId: number): Promise<number | false | void | "no_charId" | "no_invoice" | "invoice_paid" | "no_permission" | "insufficient_balance" | "no_balance">
```

0 comments on commit 65935e4

Please sign in to comment.