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