# Installation

## What do I need?

Use a supported framework or make it work with yours via the bridge folder.

[Ox Lib](https://github.com/overextended/ox_lib/releases/) (Required, Works with any server).

## Installation

:warning:Make sure you rename the folder from pickle\_firefighterjob-main to pickle\_firefighterjob prior to installing.:warning:

If you miss this step the script will not function as expected.

Navigate to the "\_INSTALL" folder.

Import the images in the \_INSTALL/images folder to your inventory image folder. (Varies on framework)

Run the SQL for ESX, or into the shared/items.lua for QB-Core.

{% tabs %}
{% tab title="ESX Job & Items" %}
Run the SQL for ESX Jobs, and Items located in the \_INSTALL Folder.
{% endtab %}

{% tab title="QBCORE Job" %}

```lua
['firefighter'] = {
    label = 'Firefighter',
    defaultDuty = true,
    offDutyPay = false,
    grades = {
        ['0'] = {
            name = 'Recruit',
            payment = 0
        },
        ['1'] = {
            name = 'Operator',
            payment = 0
        },
        ['2'] = {
            name = 'Company Officer',
            payment = 0
        },
        ['3'] = {
            name = 'Chief',
            isboss = true, 
            bankAuth = true,
            payment = 0
        },
    },
},
```

{% endtab %}

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

```lua
["watertank"] 					= {["name"] = "watertank",  	     		        ["label"] = "Water Tank",	 		    ["weight"] = 1, 		["type"] = "item", 		["image"] = "watertank.png", 				["unique"] = false, 	    ["useable"] = true, 	["shouldClose"] = true,   	["combinable"] = nil,   ["description"] = ""},
```

{% endtab %}

{% tab title="ox\_inventory" %}

```lua
['watertank'] = {
    label = 'Water Tank',
    weight = 1,
    stack = true,
    close = true,
    description = nil
},
```

{% endtab %}
{% endtabs %}
