# Installation

<details>

<summary>Dependencies</summary>

* **ox\_lib:** <https://github.com/overextended/ox_lib/releases> \
  \&#xNAN;*Make sure to download the ox\_lib.zip file and not the source code.*
* **K4mb1 shells:** [**https://www.k4mb1maps.com/product/5107241-1**](https://www.k4mb1maps.com/product/5107241-1) **(recommended) OR:**
  * **Crime Shells:** [**https://www.k4mb1maps.com/product/6577323**](https://www.k4mb1maps.com/product/6577323)
  * **Offices:** [**https://www.k4mb1maps.com/product/5625550**](https://www.k4mb1maps.com/product/5625550)
  * **Labs:** [**https://www.k4mb1maps.com/product/4698329**](https://www.k4mb1maps.com/product/4698329)
  * **Stashes:** [**https://www.k4mb1maps.com/product/4672293**](https://www.k4mb1maps.com/product/4672293)

</details>

> * Import the **database.sql** to your database.
> * Make sure **ox\_lib** is started before any of my scripts in your **server.cfg**

### **Update from last version**

> This is only for people with an active server who has been using av\_gangs before **September 9th**, if you don't have any graffiti placed by a gang then you can skip this.

#### Config.GraffitiXP

> This config is for an admin command that will read all your server graffitis and grant territory points to each gang based in the graffiti coords.
>
> * Go to `config/_config.lua > Config.GraffitiXP` and change it to a string, something like this:<br>
>
>   ```lua
>   Config.GraffitiXP = "admin:graffitis"
>   ```
> * Load to your server and use the command in game `/admin:graffitis`, wait till it finishes reading all graffitis and adding the territory points, it will show a notification on screen and in F8 console.
> * Once it finishes, go back to `config/_config.lua > Config.GraffitiXP` and change the field back to false:
>
> ```lua
> Config.GraffitiXP = false
> ```
>
> * Restart the script and don't use the command again or it will add double points to every gang.

{% hint style="warning" %}
Most of the fields in every config file have a random value, make sure to edit and adapt everything to fit your server needs. Not reading or modifying the config files can lead to break your server economy.
{% endhint %}


---

# 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/laptop-pack-v3/gangs/installation.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.
