Skip to main content
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:
    Paste this command in lation_selling/server/functions.lua at the end of the file.
    -- 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)
    
    Do not forget to remove this command when done testing!
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).
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.
This issue was marked as resolved in the v2.2.0 changelogs which can be found here. 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.
Sorry about that! Please reach out to us on Discord or via email at support@lationscripts.com regarding your issue.
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.