> For the complete documentation index, see [llms.txt](https://docs.l2s.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.l2s.dev/assets-and-guides/gangs-turf/installation.md).

# Installation

## # STEP 1 - Check dependencies

Make sure you have installed all  [dependencies ](https://docs.l2s.dev/assets-and-guides/gangs-turf).

## # STEP 2 - Drag And Drop

Drag and drop the  <mark style="color:blue;">l2s-gangsturf</mark>  to your resources folder.

## # STEP 3 - SQL Insert

Insert the SQL file to your database.

## # STEP 4 - Setup Items and Images

1- Setup Images according to your inventory

{% file src="/files/YX7na6mKNKmVcau3yXLn" %}

2- Setup  Items according to your inventory

{% tabs %}
{% tab title="qb-inventory" %}
1- Add Items in qb-core/shared/items.lua

```lua
["turfspray"] = {
    ["name"] = "turfspray",
    ["label"] = "Gang Spray",
    ["weight"] = 1000,
    ["type"] = "item",
    ["image"] = "turfspray.png",
    ["unique"] = true,
    ["useable"] = true,
    ["shouldClose"] = false,
    ["combinable"] = nil,
    ["description"] = "Gang Spray"
},
["spray_remover"] = {
    ["name"] = "spray_remover",
    ["label"] = "Spray Remover",
    ["weight"] = 1000,
    ["type"] = "item",
    ["image"] = "spray_remover.png",
    ["unique"] = true,
    ["useable"] = true,
    ["shouldClose"] = false,
    ["combinable"] = nil,
    ["description"] = "Gang Spray"
},
```

{% endtab %}

{% tab title="ox\_inventory" %}
1- Add Items in ox\_inventory/data/items.lua

```lua
['turfspray'] = {
    label = 'Turf Spray',
    weight = 100,
    client = {
        event = 'l2s-gangsturf:client:useSpray',
    },
},
['spray_remover'] = {
    label = 'Spray Remover',
    weight = 100,
},
```

```lua
```

{% endtab %}

{% tab title="qs\_inventory" %}
1- Add Items in qb-core/shared/items.lua  or or  qs-inventory/config/metadata.js for esx

```lua
["turfspray"] = {
    ["name"] = "turfspray",
    ["label"] = "Gang Spray",
    ["weight"] = 1000,
    ["type"] = "item",
    ["image"] = "spray.png",
    ["unique"] = true,
    ["useable"] = true,
    ["shouldClose"] = false,
    ["combinable"] = nil,
    ["description"] = "Gang Spray"
},
["spray_remover"] = {
    ["name"] = "spray_remover",
    ["label"] = "Spray Remover",
    ["weight"] = 1000,
    ["type"] = "item",
    ["image"] = "spray_remover.png",
    ["unique"] = true,
    ["useable"] = true,
    ["shouldClose"] = false,
    ["combinable"] = nil,
    ["description"] = "Gang Spray"
},
```

{% endtab %}

{% tab title="l2s-inventory" %}

```lua
["turfspray"] = {
    ["name"] = "turfspray",
    ["label"] = "Gang Spray",
    ["weight"] = 1000,
    ["type"] = "item",
    ["image"] = "turfspray.png",
    ["unique"] = true,
    ["useable"] = true,
    ["shouldClose"] = false,
    ["combinable"] = nil,
    ["description"] = "Gang Spray"
},
["spray_remover"] = {
    ["name"] = "spray_remover",
    ["label"] = "Spray Remover",
    ["weight"] = 1000,
    ["type"] = "item",
    ["image"] = "spray_remover.png",
    ["unique"] = true,
    ["useable"] = true,
    ["shouldClose"] = false,
    ["combinable"] = nil,
    ["description"] = "Gang Spray"
},
```

{% endtab %}
{% endtabs %}

## # STEP 5 - Start The Script

1 - Start the script on your  <mark style="color:blue;">server.cfg</mark>

```cfscript
ensure l2s-gangsturf 
```

##
