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
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.LationMethand/orConfig.LationCokesections in theconfig.luaof the selling script and set theenableoption tofalse. 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.luaat the end of the file.Do not forget to remove this command when done testing!
I want to enable full map selling OR want to disable the zones
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).The script does not start up after the server restarts, I have to manually restart the script for it to work properly again
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. 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: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.
My question or issue isn't listed here
My question or issue isn't listed here
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.