# Illegal Runs

{% embed url="<https://www.youtube.com/watch?v=-3_O7KRcbUw>" %}
Preview
{% endembed %}

## How does it works?

* The script generates a random NPC for every drug from config.
* The default run is for meth *(uses the item meth\_batch)*.
* Script will calculate the average purity from all packages u use for the run and will use it for the payout.
* The player needs to deposit a min amount of bags to start the mission. *(editable)*
* Once the mission is started the NPC stash will be wiped and the player has **60 minutes** to complete the mission before losing everything. *(editable)*
* The first mission location is for the **job vehicle**, this is an armored vehicle that will be used to reach all the other zones to stealth the packages.
* The script doesn't use any group system, everything is based on the **job vehicle,** it detects everything server side, even if the player who started the run disconnects anyone else on server can continue with the job as long as they have access to the **job vehicle**.
* If the job vehicle gets destroyed, deleted or it can't reach new locations the script will not create any new zone and the run will just stop until it reaches the time limit.
* In each zone you'll encounter gang members and a vehicle that contains the illegal package in its trunk.
* Once the run is completed you can go back to the NPC and sell the packages, each package contains metadata with the average purity and the drug used for run, all this info is used to pay the player.
* **Note:** If you use any admin command to give an illegal package you won't receive any money from the NPC because it won't contain the needed metadata (quality and drug name).

### Important

* Don't restart this resource on a live server. Even though there's a function that wipes the NPC and vehicles, some might be left over.
* **READ AND MODIFY THE CONFIG**...


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.av-scripts.com/guides/illegal-runs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
