> ## Documentation Index
> Fetch the complete documentation index at: https://lationscripts.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Drug Sales - FAQs

> Solutions to frequently asked questions

<AccordionGroup>
  <Accordion title="My drugs are only selling for $2 OR I changed the price of the drug items and the price is incorrect or not updating as expected">
    If your drugs are selling for \$2 or some price that you are not expecting, this is because of our built-in purity pricing feature. Our individual drug scripts such as weed, meth & coke use purity by default for determining the sale price. Due to the use of metadata on these items, **they cannot be spawned**. If you spawned in these items, that is the issue! However, you have a couple options to choose from:

    * You can disable purity pricing by visiting the `Config.LationWeed`, `Config.LationMeth` and/or `Config.LationCoke` sections in the `config.lua` of the selling script and set the `enable` option to `false`. This will disable purity pricing completely and rely on your specific prices set in the zones drugs settings.
    * Secondly, you could go through the correct production process of these drugs so that they are produced correctly and will contain the correct metadata and you will see the price of this drug change based on the purity value assigned.
    * Lastly (*and the most drastic option*) is you could write a temporary development command such as the one shown below and spawn the items manually with metadata in-tact:

          <Note>
            Paste this command in `lation_selling/server/functions.lua` at the end of the file.
          </Note>

      ```lua theme={null}
      -- Replace DRUG and DRUGITEM with your required drug name and item name.
      RegisterCommand('giveDRUG', function(source, args)
          AddItem(source, 'DRUGITEM', args[1] and tonumber(args[1]) or 1, {purity = 100})
      end, false)
      ```

          <Danger>
            Do not forget to remove this command when done testing!
          </Danger>
  </Accordion>

  <Accordion title="I want to enable full map selling OR want to disable the zones">
    The drug selling script is built entirely around zones, so there is no way to simply disable them. However, if you wish to allow selling across the entire map and not be limited to specific areas/zones, you can still do it!

    The first thing you must do is remove (*or comment out*) all zones except for 1. Next you must update the `coords` section for that 1 remaining zone to be roughly in the center of the map. Lastly, change the zone `size` to 5000 (*do not set the size any larger than 5000*).

    <Warning>
      Please note; the drug selling script is not designed to be used in this manner. Using the script in a single-zone configuration is generally unsupported and may break certain features such as job checks. Lastly, you should be aware using the script in this manner also removes the most powerful features of this resource; the ability to create a dynamic and region-based drug selling environment that can be customized per-zone.
    </Warning>
  </Accordion>

  <Accordion title="The script does not start up after the server restarts, I have to manually restart the script for it to work properly again">
    This issue was marked as resolved in the v2.2.0 changelogs which can be found [here](https://lationscripts.com/docs/drug-sales/changelog#2-2-0). If you are on an older version, you must update to the latest. If the issue still persists and you confirmed you are on the latest version, then a temporary workaround which may work is: open your server.cfg file, navigate to the very bottom of your entire resource start list, and add the following two lines:

    ```
    stop lation_selling
    ensure lation_selling
    ```

    This is reportedly working for most users, but may not work for everyone. If you have done everything here and are still unable to resolve the issue, don't worry! We are aware of this odd issue and are still actively working on investigating why.
  </Accordion>

  <Accordion title="My question or issue isn't listed here">
    Sorry about that! Please reach out to us on [**Discord**](https://discord.gg/9EbY4nM5uu) or via email at [**support@lationscripts.com**](mailto:support@lationscripts.com) regarding your issue.
  </Accordion>
</AccordionGroup>

<Note>
  When working with, testing, or tweaking this resource; do not restart the script! To properly restart this resource you first must `stop lation_selling` then `ensure lation_selling`. Failure to do so can cause issues, errors, and unexpected behavior.
</Note>
