> For the complete documentation index, see [llms.txt](https://s0u-scripts.gitbook.io/s0u-scripts-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://s0u-scripts.gitbook.io/s0u-scripts-docs/truck-driver/installation.md).

# Installation

{% stepper %}
{% step %}

#### Download

1. Download [s0u\_truckerJob](https://portal.cfx.re/assets/granted-assets?page=1\&sort=asset.updated_at\&direction=asc\&search=s0u_truckerJob) from the FiveM Portal.
2. If you bought the trucker job bundle, also download [fq\_truckerBase](https://portal.cfx.re/assets/granted-assets?page=1\&sort=asset.updated_at\&direction=asc\&search=fq_truckerBase) and [s0u\_yosemite\_pilot](https://portal.cfx.re/assets/granted-assets?page=1\&sort=asset.updated_at\&direction=asc\&search=s0u_yosemite_pilot).
   {% endstep %}

{% step %}

#### Copy the folders

1. Unzip the files. Put the folders in the `resources` folder of your server.
2. The script folder must have the name `s0u_trucker_job`. <mark style="color:red;">**Do not change this name.**</mark> The CMR item uses this name to find the script.
3. Crew jobs use an escort car (a car that drives with the truck) called `yosemite_pilot`. This car is in its own resource, `s0u_yosemite_pilot`. Put this folder in `resources` too.

{% hint style="info" %}
You do not have the escort car? Open `config_advanced.lua`, find `Config.TransportTypes` and change every `convoyVehicle = 'yosemite_pilot'` to a car you have, for example `'yosemite'`.
{% endhint %}
{% endstep %}

{% step %}

#### Add the script to server.cfg

Start the trucker job **after** all the scripts it uses. Remove the lines for the scripts you do not have.

{% code title="server.cfg" %}

```
ensure fq_trucker_mlo
ensure s0u_yosemite_pilot
ensure s0u_trucker_job
```

{% endcode %}

* `fq_trucker_mlo` is the base building (MLO) and `s0u_yosemite_pilot` is the escort car. Remove these lines if you don't use them.
  {% endstep %}

{% step %}

#### Database

You **do not** need to import anything. With `oxmysql`, the script makes its own tables the first time it starts. All the tables start with `s0u_`.
{% endstep %}

{% step %}

#### Add the items

Go to the **Items** page.
{% endstep %}

{% step %}

#### No target script? Read this

If you do not have `ox_target`, `qb-target` or `is_interaction`, open `config.lua` and set:

{% code title="config.lua" %}

```lua
Config.MarkerType = 'marker'
```

{% endcode %}

{% hint style="warning" %}
If you do not do this step, players cannot open the job menu at the base.
{% endhint %}
{% endstep %}

{% step %}

#### Set the basic options in config.lua

The language, the money, which jobs can work as truckers and which jobs are police. Go to the **General settings** page.
{% endstep %}
{% endstepper %}

{% hint style="success" %}
**Done! Enjoy the script!** 🎉
{% endhint %}
