# Export

## **Client Export**

### <mark style="color:green;">Client Event :</mark>  <mark style="color:green;"></mark><mark style="color:green;">`Society:OpenSociety`</mark>

Opens the society management interface for authorized players by retrieving and displaying various society-related information.

## **Server Export**

### <mark style="color:green;">**Server Event :**</mark><mark style="color:green;">**&#x20;**</mark><mark style="color:green;">**`Society:RevokeBill`**</mark>

Revokes a bill from the `society_billing` database and notifies both the bill's owner and the player who revoked it.

**Parameters** :

* `bill`: The bill details including `id`, `society`, `owner_identifier`, and `value`.

### <mark style="color:green;">**Server Event :**</mark> <mark style="color:green;"></mark><mark style="color:green;">`Society:DeleteBill`</mark>

Deletes a bill from the `society_billing` database.

**Parameters** :

* `bill`: The bill details including `id`.

### <mark style="color:green;">**Server Event :**</mark>  <mark style="color:green;"></mark><mark style="color:green;">`Society:SendBill`</mark>

Sends a bill to a player and inserts it into the `society_billing` database.

**Parameters** :

* `source`: The ID of the source player.
* `playerId`: The ID of the target player.
* `amount`: The amount to be billed.

### <mark style="color:green;">Server Event :</mark> <mark style="color:green;"></mark><mark style="color:green;">`Society:PayBill`</mark>

Processes the payment of a bill, updates the database, and handles associated transactions.

**Parameters** :

* `id`: The ID of the player paying the bill.
* `target`: The identifier of the target player.
* `amount`: The amount to be paid.
* `society`: The society's identifier.
* `society_name`: The society's name.
* `method`: The payment method.

### <mark style="color:green;">Server Callback :</mark> <mark style="color:green;"></mark><mark style="color:green;">`Society:GetAllBillSociety`</mark>

Retrieves all bills for a society that match the specified payment status.

**Parameters** :

* `source`: The ID of the source player.
* `cb`: The callback function to return the result.
* `payed`: The payment status (true or false).

### <mark style="color:green;">Server Callback :</mark> <mark style="color:green;"></mark><mark style="color:green;">`Society:GetUnpayedBill`</mark>

**Parameters** :

* `source`: The ID of the source player.
* `cb`: The callback function to return the result.
* `playerId`: The ID of the target player.

### <mark style="color:green;">Server Callback :</mark> <mark style="color:green;"></mark><mark style="color:green;">`Society:GetBillList`</mark>

**Parameters** :

* `source`: The ID of the source player.
* `cb`: The callback function to return the result.


---

# 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://doc.var-fivem.com/society-manager/export.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.
