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

# Installation

## Step 1: <mark style="color:blue;">Move resource</mark>

Extract the zip you downloaded from [<mark style="color:$success;">cfx.re portal</mark>](https://portal.cfx.re/assets/granted-assets) and place the <mark style="color:$success;">stg-fossil</mark> and <mark style="color:$success;">stg-fossil-props</mark> folder inside the <mark style="color:$success;">\[STG]</mark> folder in your resources directory.

## Step 2: <mark style="color:blue;">Add Job</mark> (optional)

:information\_source: This is something you need to set up if you want to make it job-specific. You can customize it through `Config.Job`.

{% tabs %}
{% tab title="es\_extended " %}

```sql
INSERT INTO jobs (name, label) VALUES
('fossil', 'Fossil Hunter');

INSERT INTO job_grades (job_name, grade, name, label, salary, skin_male, skin_female) VALUES
('fossil', 0, 'worker', 'Worker', 50, '{}', '{}'),
('fossil', 1, 'experienced', 'Experienced Worker', 75, '{}', '{}'),
('fossil', 2, 'boss', 'Boss', 100, '{}', '{}');
```

{% endtab %}

{% tab title="qb-core" %}
qb-core/shared/jobs.lua

```lua
['fossil'] = {
    label = 'Fossil Hunter',
    defaultDuty = true,
    offDutyPay = false,
    grades = {
        ['0'] = {
            name = 'Worker',
            payment = 50
        },
        ['1'] = {
            name = 'Experienced',
            payment = 75
        },
        ['2'] = {
            name = 'Boss',
            isboss = true,
            payment = 100
        },
    },
},
```

{% endtab %}

{% tab title="qbx\_core" %}
qbx\_core/shared/jobs.lua

```lua
['fossil'] = {
    label = 'Fossil Hunter',
    defaultDuty = true,
    offDutyPay = false,
    grades = {
        [0] = {
            name = 'Worker',
            payment = 50
        },
        [1] = {
            name = 'Experienced',
            payment = 75
        },
        [2] = {
            name = 'Boss',
            payment = 100,
            isboss = true
        }
    }
},
```

{% endtab %}
{% endtabs %}

## Step 3: <mark style="color:blue;">Install SQL</mark>

Perform the installation of <mark style="color:$success;">stg\_fossil.sql</mark> in the <mark style="color:$success;">\[SETUP]</mark> directory.

## Step 4: <mark style="color:blue;">Start Script</mark>&#x20;

Start <mark style="color:$success;">\[STG]</mark> in server.cfg.

For the script to work properly, it would be better to place this at the very bottom of the scripts that are started.

```
ensure [STG]
```
