> For the complete documentation index, see [llms.txt](https://doc.var-fivem.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.var-fivem.com/society-manager/export.md).

# 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.
