> 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-admin/installation.md).

# Installation

1. **Ensure all dependencies are installed**\
   \&#xNAN;*Be sure all dependencies are installed, running, and utilizing the latest versions available.*

   Required:

   * oxmysql
   * ox\_lib
   * ESX or QBCore framework
2. **Extract Files**\
   \&#xNAN;*Extract `nayzeee-admin` into your server resources folder.*

   Example:

   ```
   resources/[nayzeee]/nayzeee-admin
   ```
3. **Configure Script**\
   \&#xNAN;*Configure the script to your liking inside `config.lua`.*

   Example configuration:

   ```lua
   Config.Framework = 'auto'
   Config.OpenKey = 'F7'
   Config.QuickMenuKey = 'F6'

   Config.StaffRanks = {
       { id = 'admin', label = 'Admin', level = 4, color = '#a371f7' },
   }
   ```
4. **Drag script into resources directory**\
   \&#xNAN;*Be sure to ensure the resource inside your `server.cfg` after dependencies.*

   ```cfg
   ensure oxmysql
   ensure es_extended
   ensure nayzeee-admin
   ```
5. **Restart/Start Server**\
   \&#xNAN;*Restart or start the resource. The script will automatically create required database tables on first launch.*

This script will automatically create the needed SQL tables and structure on its first launch, making installation seamless, simple, and stress-free!
