# Installation

{% tabs %}
{% tab title="QBCore" %}

* Ensure that you have all [dependencies ](https://docs.origennetwork.store/origen-ilegal/dependencies)and that they start before the **origen\_ilegal**
* Copy the **origen\_ilegal** to its resource folder and start it in the `server.cfg`
* Modify the file `pma-voice/client/init/main.lua` and insert the following at the end of the file

```lua
exports("toggleVoice", toggleVoice)
exports("playerTargets", playerTargets)
```

* Modify the file `bob74_ipl/dlc_bikers/weed.lua`, on line 523, replace the entire `LoadDefault` function with the following

```lua
LoadDefault = function()
    BikerWeedFarm.Ipl.Interior.Load()
    BikerWeedFarm.Style.Set(BikerWeedFarm.Style.basic)
    BikerWeedFarm.Security.Set(BikerWeedFarm.Security.basic)
    BikerWeedFarm.Details.Enable(BikerWeedFarm.Details.drying, false)
    BikerWeedFarm.Details.Enable(BikerWeedFarm.Details.chairs, true)
    BikerWeedFarm.Details.Enable(BikerWeedFarm.Details.production, false)
    BikerWeedFarm.Details.Enable(BikerWeedFarm.Details.fans, false)
    
    BikerWeedFarm.Plant1.Clear()
    BikerWeedFarm.Plant2.Clear()
    BikerWeedFarm.Plant3.Clear()
    BikerWeedFarm.Plant4.Clear()
    BikerWeedFarm.Plant5.Clear()
    BikerWeedFarm.Plant6.Clear()
    BikerWeedFarm.Plant7.Clear()
    BikerWeedFarm.Plant8.Clear()
    BikerWeedFarm.Plant9.Clear()

    RefreshInterior(BikerWeedFarm.interiorId)
end
```

* Execute the following [query ](https://docs.origennetwork.store/origen-ilegal/installation/sql)in your database.
* Insert the items from the `items.lua` file according to your inventory
* <mark style="color:red;">ONLY QB-INVENTORY</mark> [follow these instructions](https://docs.origennetwork.store/origen-ilegal/installation/qb-inventory)
* Restart the server
  {% endtab %}

{% tab title="ESX" %}

* Ensure that you have all [dependencies ](https://docs.origennetwork.store/origen-ilegal/dependencies)and that they start before the **origen\_ilegal**
* Copy the **origen\_ilegal** to its resource folder and start it in the `server.cfg`
* Modify the file `pma-voice/client/init/main.lua` and insert the following at the end of the file

```lua
exports("toggleVoice", toggleVoice)
exports("playerTargets", playerTargets)
```

* Modify the file `bob74_ipl/dlc_bikers/weed.lua`, on line 523, replace the entire `LoadDefault` function with the following

```lua
LoadDefault = function()
    BikerWeedFarm.Ipl.Interior.Load()
    BikerWeedFarm.Style.Set(BikerWeedFarm.Style.basic)
    BikerWeedFarm.Security.Set(BikerWeedFarm.Security.basic)
    BikerWeedFarm.Details.Enable(BikerWeedFarm.Details.drying, false)
    BikerWeedFarm.Details.Enable(BikerWeedFarm.Details.chairs, true)
    BikerWeedFarm.Details.Enable(BikerWeedFarm.Details.production, false)
    BikerWeedFarm.Details.Enable(BikerWeedFarm.Details.fans, false)
    
    BikerWeedFarm.Plant1.Clear()
    BikerWeedFarm.Plant2.Clear()
    BikerWeedFarm.Plant3.Clear()
    BikerWeedFarm.Plant4.Clear()
    BikerWeedFarm.Plant5.Clear()
    BikerWeedFarm.Plant6.Clear()
    BikerWeedFarm.Plant7.Clear()
    BikerWeedFarm.Plant8.Clear()
    BikerWeedFarm.Plant9.Clear()

    RefreshInterior(BikerWeedFarm.interiorId)
end
```

* Execute the following [query ](https://docs.origennetwork.store/origen-ilegal/installation/sql)in your database.
* Insert the items from the `items.lua` file according to your inventory
* Restart the server

{% endtab %}
{% endtabs %}

{% hint style="warning" %}
We recommend uploading our script files without using FileZilla, as the upload process may corrupt our scripts. As a recommendation, please use WinSCP or other reliable programs to upload the files.
{% endhint %}
