> For the complete documentation index, see [llms.txt](https://veil-development.gitbook.io/veil-development-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://veil-development.gitbook.io/veil-development-documentation/paid-resources/government-system/setup.md).

# Setup

Instructions for the Government System Setup

**Start Up**\
On the initial start-up of the script, the system will automatically create all the required SQL tables. Before starting the script you WILL need to navigate to `shared/shared.lua` and configure `Shared.Database` `Shared.Framework` `Shared.Inventory` `Shared.Target` so the script can setup without issues

**Functions to edit**

* AddToGovernmentAccount
  * You will need to edit the `AddToGovernmentAccount` function in `open/server/sv_main.lua` to match your banking system to deposit all money received from taxes into your mayor/government bank account
* SendMail
  * This function is used to send mails to players to update them about appointments, case info, etc. Edit to match your phone functions
* BanPlayer
  * Edit this function to match your framework/custom ban system

**Variables to edit**

* View Needed

  * In `shared/actions.lua` you will need to edit all of the `viewNeeded` variables to match what jobs you want to do what and see what

* Access
  * In `shared/access.lua` you will need to edit the `view` `add` `update` and `remove` variables to match what jobs you want to have access to what in the system
