# exports / triggers

## Client Exports

|                                     Export/Trigger                                    |                               Values/Results                               |
| :-----------------------------------------------------------------------------------: | :------------------------------------------------------------------------: |
|       TriggerEvent('brutal\_banking:client:AddTransaction', amount, type, label)      |                           type = 'add' / 'remove'                          |
| TriggerServerEvent('brutal\_banking:server:CreateSubAccount', account\_name, pincode) |       Create a subaccount for the player where the trigger runs from       |
|       TriggerServerEvent('brutal\_banking:server:DeleteSubAccount', account\_id)      | Deletes a sub account from a player the player where the trigger runs from |

## Server Exports

|                                        Export/Trigger                                       |                                                              Values/Results                                                             |
| :-----------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------: |
|   TriggerClientEvent('brutal\_banking:client:AddTransaction', source, amount, type, label)  |                                                         type = 'add' / 'remove'                                                         |
| TriggerEvent('brutal\_banking:server:CreateSubAccount', player\_id ,account\_name, pincode) |  <p>Create a sub account for the player. </p><p>'player\_id' = The server id of the player you want to create the sub account for. </p> |
|       TriggerEvent('brutal\_banking:server:DeleteSubAccount', player\_id, account\_id)      | <p>Delete a sub account for the player. </p><p>'player\_id' = The server id of the player you want to delete the sub account from. </p> |


---

# 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://docs.brutalscripts.com/site/scripts/banking/exports-triggers.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.
