# Exports And Events

## Client Exports

### CreateCustomInvoice

Send custom invoice

```lua
exports['varix-billing']:CreateCustomInvoice(
            target, 
            amount, 
            reason, 
            sourceName, 
            societyJob, 
            societyJob, 
            sourceIdentifier, 
            targetType
        )
targettype: "society" or "player" if not set "player" is default

```

<table><thead><tr><th>Prop</th><th>Type</th></tr></thead><tbody><tr><td><pre><code>target
</code></pre></td><td>Player source (number) or identifier (string)</td></tr><tr><td><pre><code>price
</code></pre></td><td>Amount (number)</td></tr><tr><td><pre><code>reason
</code></pre></td><td>Reason (string)</td></tr><tr><td><pre><code>invoiceSource
</code></pre></td><td>Sender name or 'Police' (string)</td></tr><tr><td><pre><code>society
</code></pre></td><td>Society account (string/nil)</td></tr><tr><td><pre><code>societyName
</code></pre></td><td>Display name (string/nil)</td></tr><tr><td><pre><code>authorIdentifier
</code></pre></td><td>Identifier of the issuer (string/nil)</td></tr><tr><td><pre><code>targetType
</code></pre></td><td>"society" or "player" if not set "player"<br>is default</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://varixcode.gitbook.io/varixcode/varixcode-series/vlrixcode-billing/exports-and-events.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
