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

# Installation

1. **Install Dependencies**\
   \&#xNAN;*Ensure all required dependencies are installed and running before starting the script.*
2. **Add Items**\
   \&#xNAN;*Add the required items into your inventory system.*

   Copy items from:

   ```
   INSTALL/OX.txt
   ```

   Example item format for **ox\_inventory**:

   ```lua
   ['weed_white-widow'] = {
       label = 'Weed (White Widow)',
       weight = 10,
       stack = true,
       close = true,
   },
   -- More items...
   ```
3. **Add Images**\
   \&#xNAN;*Add item images for inventory display.*

   Copy images from:

   ```
   INSTALL/images/
   ```

   Into your inventory image folder.
4. **Configure Script**\
   \&#xNAN;*Configure the script inside `config.lua`.*

   Example configuration:

   ```lua
   Config.Target = 'ox_target' -- or 'qb-target'
   Config.Notify = 'ox_lib'
   ```
5. **Add to server.cfg**\
   \&#xNAN;*Ensure the resource is started after dependencies.*

   ```cfg
   ensure ox_lib
   ensure ox_target
   ensure nayzeee-drugselling
   ```

***

#### Troubleshooting

| Issue              | Solution                             |
| ------------------ | ------------------------------------ |
| Can't sell to NPCs | Check target system configuration    |
| Items not working  | Verify items were added to inventory |
| No notifications   | Check notify system settings         |
