> For the complete documentation index, see [llms.txt](https://nayzeee-dev.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nayzeee-dev.gitbook.io/docs/nayzeee-scripts/nayzeee-billing/installation.md).

# Installation

1. **Install Dependencies**\
   \&#xNAN;*Ensure all required dependencies are installed and running before starting the script.*
2. **Import Database**\
   \&#xNAN;*Import the billing SQL file into your database.*

   Run:

   ```sql
   -- Run sql/billing.sql
   ```
3. **Configure Script**\
   \&#xNAN;*Configure the script inside `config.lua`.*

   Example configuration:

   ```lua
   Config.Framework = 'auto'
   Config.Command = 'billing'
   Config.OpenKey = 'F6'
   Config.DefaultTaxRate = 0.08 -- 8%
   ```
4. **Configure Companies**\
   \&#xNAN;*Add or edit businesses inside `companies.lua` to customize billing companies.*
5. **Add to Server Config**\
   \&#xNAN;*Ensure the resource is started after dependencies.*

   ```cfg
   ensure nayzeee-billing
   ```
6. **Restart Server**\
   \&#xNAN;*Restart or start the resource. The script will automatically create required database structure on first launch.*
