π°Selling
With the update v1.1.0 it is now also possible to sell drugs to NPCs in certain zones with the script.
To be able to use this feature, Config.EnableSelling
must be set to true in the Config!
Config.SellSettings
Here you will find the most important settings for selling. These settings apply to all zones.
Config.SellZones
The individual zones can be created and edited here. We will now take a closer look at one zone and explain what the individual values mean and what they change.
We start with the zone id, this specifies the name of the zone, the name is only relevant for the script. The zone id must not contain any special characters or spaces and must be unique
Make sure that all z coordinates (laste number) are the same, otherwise the zone will not be created.
The points define the area of the zone. A straight line is drawn between two consecutive vec3() or vec()
to define the edge of the zone. A line is also automatically drawn between the last and first vec3()
.
The thickness can be left at 4 if the zone is created manually. However, since the script now uses ox_lib for the zones, this can also be created more easily. You can find more information here:
As soon as a player enters this zone he has the possibility to sell items to the NPCs.
Here you can specify which drugs can be sold in the zone. Theoretically, an infinite number of items can be added. For many items it is recommended to set Config.asdasd
to true.
Schemata for new items
Last updated