# Installation

## Items Installation

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

```lua
["car_insurance"] = {
    ["name"] = "car_insurance",
    ["label"] = "Car Insurance",
    ["weight"] = 150,
    ["type"] = "item",
    ["image"] = "car_insurance.png",
    ["unique"] = true,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = ""
},

["car_registration"] = {
    ["name"] = "car_registration",
    ["label"] = "Car Registration",
    ["weight"] = 150,
    ["type"] = "item",
    ["image"] = "car_registration.png",
    ["unique"] = true,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = ""
},

["health_insurance"] = {
    ["name"] = "health_insurance",
    ["label"] = "Health Insurance",
    ["weight"] = 150,
    ["type"] = "item",
    ["image"] = "health_insurance.png",
    ["unique"] = true,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = ""
},

["home_insurance"] = {
    ["name"] = "home_insurance",
    ["label"] = "Home Insurance",
    ["weight"] = 150,
    ["type"] = "item",
    ["image"] = "home_insurance.png",
    ["unique"] = true,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = ""
},

["car_camera"] = {
    ["name"] = "car_camera",
    ["label"] = "Car Camera",
    ["weight"] = 20,
    ["type"] = "item",
    ["image"] = "car_camera.png",
    ["unique"] = true,
    ["useable"] = true,
    ["shouldClose"] = true,
    ["combinable"] = nil,
    ["description"] = ""
}
```

{% endtab %}

{% tab title="ox\_inventory/data/items.lua" %}

```lua
["car_insurance"] = {
    label = "Car Insurance",
    weight = 25,
    stack = false,
    close = true,
    description = "Document that proves you have insurance for your vehicle",
    client = {
        image = "car_insurance.png",
    }
},

["car_registration"] = {
    label = "Car Registration",
    weight = 25,
    stack = false,
    close = true,
    description = "Document that proves you are the owner of the vehicle",
    client = {
        image = "car_registration.png",
    }
},

["health_insurance"] = {
    label = "Health Insurance",
    weight = 25,
    stack = false,
    close = true,
    description = "Document that proves you have health insurance",
    client = {
        image = "health_insurance.png",
    }
},

["home_insurance"] = {
    label = "Home Insurance",
    weight = 25,
    stack = false,
    close = true,
    description = "Document that proves you have home insurance",
    client = {
        image = "home_insurance.png",
    }
},
["car_camera"] = {
    label = "Car Camera",
    weight = 25,
    stack = false,
    close = true,
    description = "Camera for your vehicle",
    client = {
	image = "car_camera.png",
    }
}
```

{% endtab %}
{% endtabs %}

## Metadata Installation

{% hint style="info" %}
**Note:** If you use most recent qb-inventory or ox\_inventory ignore this.
{% endhint %}

{% tabs %}
{% tab title="qb-inventory/html/js/app.js" %}

```javascript
} else if (itemData.name == "car_insurance") {
    $(".item-info-title").html("<p>" + itemData.label + "</p>");
    $(".item-info-description").html(
        "<p><strong>Name: </strong><span>" +
        itemData.info.name +
        "</span></p><p><strong>Plate: </strong><span>" +
        itemData.info.plate +
        "</span></p><p><strong>Vehicle Model: </strong><span>" +
        itemData.info.model +
        "</span></p><p><strong>Expires: </strong><span>" +
        itemData.info.expire +
        "</span></p>"
    );

} else if (itemData.name == "car_registration") {
    $(".item-info-title").html("<p>" + itemData.label + "</p>");
    $(".item-info-description").html(
        "<p><strong>Name: </strong><span>" +
        itemData.info.name +
        "</span></p><p><strong>Plate: </strong><span>" +
        itemData.info.plate +
        "</span></p><p><strong>Vehicle Model: </strong><span>" +
        itemData.info.model +
        "</span></p><p><strong>Expires: </strong><span>" +
        itemData.info.expire +
        "</span></p>"
    );

} else if (itemData.name == "health_insurance") {
    $(".item-info-title").html("<p>" + itemData.label + "</p>");
    $(".item-info-description").html(
        "<p><strong>Name: </strong><span>" +
        itemData.info.name +
        "</span></p><p><strong>Expires: </strong><span>" +
        itemData.info.expire +
        "</span></p>"
    );
} else if (itemData.name == "home_insurance") {
    $(".item-info-title").html("<p>" + itemData.label + "</p>");
    $(".item-info-description").html(
        "<p><strong>Name: </strong><span>" +
        itemData.info.name +
        "</span></p><p><strong>Expires: </strong><span>" +
        itemData.info.expire +
        "</span></p>"
    );
} else if (itemData.name == "car_camera") {
    $(".item-info-title").html("<p>" + itemData.label + "</p>");
    $(".item-info-description").html(
        "</span></p><p><strong>Plate: </strong><span>" +
        itemData.info.plate +
        "</span></p>"
    );
```

{% endtab %}

{% tab title="qs-inventory/configs/config\_metadata.js" %}

```javascript
} else if (itemData.name == "car_insurance") {
    $(".item-info-title").html("<p>" + itemData.label + "</p>");
    $(".item-info-description").html(
        "<p><strong>Name: </strong><span>" +
        itemData.info.name +
        "</span></p><p><strong>Plate: </strong><span>" +
        itemData.info.plate +
        "</span></p><p><strong>Vehicle Model: </strong><span>" +
        itemData.info.model +
        "</span></p><p><strong>Expires: </strong><span>" +
        itemData.info.expire +
        "</span></p>"
    );

} else if (itemData.name == "car_registration") {
    $(".item-info-title").html("<p>" + itemData.label + "</p>");
    $(".item-info-description").html(
        "<p><strong>Name: </strong><span>" +
        itemData.info.name +
        "</span></p><p><strong>Plate: </strong><span>" +
        itemData.info.plate +
        "</span></p><p><strong>Vehicle Model: </strong><span>" +
        itemData.info.model +
        "</span></p><p><strong>Expires: </strong><span>" +
        itemData.info.expire +
        "</span></p>"
    );

} else if (itemData.name == "health_insurance") {
    $(".item-info-title").html("<p>" + itemData.label + "</p>");
    $(".item-info-description").html(
        "<p><strong>Name: </strong><span>" +
        itemData.info.name +
        "</span></p><p><strong>Expires: </strong><span>" +
        itemData.info.expire +
        "</span></p>"
    );
} else if (itemData.name == "home_insurance") {
    $(".item-info-title").html("<p>" + itemData.label + "</p>");
    $(".item-info-description").html(
        "<p><strong>Name: </strong><span>" +
        itemData.info.name +
        "</span></p><p><strong>Expires: </strong><span>" +
        itemData.info.expire +
        "</span></p>"
    );
} else if (itemData.name == "car_camera") {
    $(".item-info-title").html("<p>" + itemData.label + "</p>");
    $(".item-info-description").html(
        "</span></p><p><strong>Plate: </strong><span>" +
        itemData.info.plate +
        "</span></p>"
    );
```

{% endtab %}

{% tab title="codem-inventory/config/metadata.js" %}

```javascript
} else if (item.name.match("car_insurance")) {
    let infoData = [
        { label: "Name", value: iteminfo.name || "Unknown" },
        { label: "Plate", value: iteminfo.plate || "Unknown" },
        { label: "Vehicle Model", value: iteminfo.model || "Unknown" },
        { label: "Expires", value: iteminfo.expire || "Unknown" }
    ];
    returnString = infoData;
} else if (item.name.match("car_registration")) {
    let infoData = [
        { label: "Name", value: iteminfo.name || "Unknown" },
        { label: "Plate", value: iteminfo.plate || "Unknown" },
        { label: "Vehicle Model", value: iteminfo.model || "Unknown" },
        { label: "Expires", value: iteminfo.expire || "Unknown" }
    ];
    returnString = infoData;
} else if (item.name.match("health_insurance")) {
    let infoData = [
        { label: "Name", value: iteminfo.name || "Unknown" },
        { label: "Expires", value: iteminfo.expire || "Unknown" }
    ];
    returnString = infoData;
} else if (item.name.match("home_insurance")) {
    let infoData = [
        { label: "Name", value: iteminfo.name || "Unknown" },
        { label: "Expires", value: iteminfo.expire || "Unknown" }
    ];
    returnString = infoData;
} else if (item.name.match("car_camera")) {
    let infoData = [
        { label: "Plate", value: iteminfo.plate || "Unknown" }
    ];
    returnString = infoData;
```

{% endtab %}

{% tab title="tgiann-inventory/metadata.js" %}

```javascript
    car_insurance = {
        {
            metadata = "name",
            value = {
                tr = "İsim:",
                en = "Nome:"
            }
        },
        {
            metadata = "plate",
            value = {
                tr = "Plaka:",
                en = "Matrícula:"
            }
        },
        {
            metadata = "model",
            value = {
                tr = "Araç Modeli:",
                en = "Modelo do Veículo:"
            }
        },
        {
            metadata = "expire",
            value = {
                tr = "Bitiş:",
                en = "Expira:"
            }
        },
    },
    
    car_registration = {
        {
            metadata = "name",
            value = {
                tr = "İsim:",
                en = "Nome:"
            }
        },
        {
            metadata = "plate",
            value = {
                tr = "Plaka:",
                en = "Matrícula:"
            }
        },
        {
            metadata = "model",
            value = {
                tr = "Araç Modeli:",
                en = "Modelo do Veículo:"
            }
        },
        {
            metadata = "expire",
            value = {
                tr = "Bitiş:",
                en = "Expira:"
            }
        },
    },
    
    health_insurance = {
        {
            metadata = "name",
            value = {
                tr = "İsim:",
                en = "Nome:"
            }
        },
        {
            metadata = "expire",
            value = {
                tr = "Bitiş:",
                en = "Expira:"
            }
        },
    },
    
    home_insurance = {
        {
            metadata = "name",
            value = {
                tr = "İsim:",
                en = "Nome:"
            }
        },
        {
            metadata = "expire",
            value = {
                tr = "Bitiş:",
                en = "Expira:"
            }
        },
    },
    
    car_camera = {
        {
            metadata = "plate",
            value = {
                tr = "Plaka:",
                en = "Matrícula:"
            }
        },
    },
```

{% endtab %}
{% endtabs %}

## Emotes Menu Installation

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

<pre class="language-lua"><code class="lang-lua">-- Path: rpemotes/Client/AnimationList.lua
-- This code below is inside the RP.Emotes = {
<strong>["health_insurance"] = {"anim@heists@humane_labs@finale@keycards", "ped_a_enter_loop", "Card", AnimationOptions =
</strong>{
    Prop = "m-insurance_prop_card_health",
    PropBone = 18905,
    PropPlacement = {0.17, 0.03, 0.04, 1.0, 184.0, 0.0},
    EmoteLoop = true,
    EmoteMoving = true,
}},
["car_insurance"] = {"anim@heists@humane_labs@finale@keycards", "ped_a_enter_loop", "Card", AnimationOptions =
{
    Prop = "m-insurance_prop_card_vehicle",
    PropBone = 18905,
    PropPlacement = {0.17, 0.03, 0.04, 1.0, 184.0, 0.0},
    EmoteLoop = true,
    EmoteMoving = true,
}},
["car_registration"] = {"anim@heists@humane_labs@finale@keycards", "ped_a_enter_loop", "Card", AnimationOptions =
{
    Prop = "m-insurance_prop_card_registration",
    PropBone = 18905,
    PropPlacement = {0.17, 0.03, 0.04, 1.0, 184.0, 0.0},
    EmoteLoop = true,
    EmoteMoving = true,
}},
["home_insurance"] = {"anim@heists@humane_labs@finale@keycards", "ped_a_enter_loop", "Card", AnimationOptions =
{
    Prop = "m-insurance_prop_card_house",
    PropBone = 18905,
    PropPlacement = {0.17, 0.03, 0.04, 1.0, 184.0, 0.0},
    EmoteLoop = true,
    EmoteMoving = true,
}},
</code></pre>

{% endtab %}

{% tab title="dpemotes" %}

```lua
-- Path: dpemotes/Client/AnimationList.lua
-- This code below is inside the DP.Emotes = {
["health_insurance"] = {"anim@heists@humane_labs@finale@keycards", "ped_a_enter_loop", "Card", AnimationOptions =
{
    Prop = "m-insurance_prop_card_health",
    PropBone = 18905,
    PropPlacement = {0.17, 0.03, 0.04, 1.0, 184.0, 0.0},
    EmoteLoop = true,
    EmoteMoving = true,
}},
["car_insurance"] = {"anim@heists@humane_labs@finale@keycards", "ped_a_enter_loop", "Card", AnimationOptions =
{
    Prop = "m-insurance_prop_card_vehicle",
    PropBone = 18905,
    PropPlacement = {0.17, 0.03, 0.04, 1.0, 184.0, 0.0},
    EmoteLoop = true,
    EmoteMoving = true,
}},
["car_registration"] = {"anim@heists@humane_labs@finale@keycards", "ped_a_enter_loop", "Card", AnimationOptions =
{
    Prop = "m-insurance_prop_card_registration",
    PropBone = 18905,
    PropPlacement = {0.17, 0.03, 0.04, 1.0, 184.0, 0.0},
    EmoteLoop = true,
    EmoteMoving = true,
}},
["home_insurance"] = {"anim@heists@humane_labs@finale@keycards", "ped_a_enter_loop", "Card", AnimationOptions =
{
    Prop = "m-insurance_prop_card_house",
    PropBone = 18905,
    PropPlacement = {0.17, 0.03, 0.04, 1.0, 184.0, 0.0},
    EmoteLoop = true,
    EmoteMoving = true,
}},
```

{% endtab %}

{% tab title="scully\_emotemenu" %}

```lua
-- Path: scully_emotemenu/data/animations/prop_emotes.lua
{
    Label = 'Health Insurance',
    Command = 'health_insurance',
    Animation = 'ped_a_enter_loop',
    Dictionary = 'anim@heists@humane_labs@finale@keycards',
    Options = {
        Props = {
            {
                Bone = 18905,
                Name = 'm-insurance_prop_card_health',
                Placement = {
                    vector3(0.17, 0.03, 0.04),
                    vector3(1.0, 184.0, 0.0),
                },
            },
        },
    },
},
{
    Label = 'Car Insurance',
    Command = 'car_insurance',
    Animation = 'ped_a_enter_loop',
    Dictionary = 'anim@heists@humane_labs@finale@keycards',
    Options = {
        Props = {
            {
                Bone = 18905,
                Name = 'm-insurance_prop_card_vehicle',
                Placement = {
                    vector3(0.17, 0.03, 0.04),
                    vector3(1.0, 184.0, 0.0),
                },
            },
        },
    },
},
{
    Label = 'Car Registration',
    Command = 'car_registration',
    Animation = 'ped_a_enter_loop',
    Dictionary = 'anim@heists@humane_labs@finale@keycards',
    Options = {
        Props = {
            {
                Bone = 18905,
                Name = 'm-insurance_prop_card_registration',
                Placement = {
                    vector3(0.17, 0.03, 0.04),
                    vector3(1.0, 184.0, 0.0),
                },
            },
        },
    },
},
{
    Label = 'Home Registration',
    Command = 'home_insurance',
    Animation = 'ped_a_enter_loop',
    Dictionary = 'anim@heists@humane_labs@finale@keycards',
    Options = {
        Props = {
            {
                Bone = 18905,
                Name = 'm-insurance_prop_card_house',
                Placement = {
                    vector3(0.17, 0.03, 0.04),
                    vector3(1.0, 184.0, 0.0),
                },
            },
        },
    },
},-- Path: 
```

{% endtab %}

{% tab title="r\_animations" %}

```lua
-- Path: r_animations/configs/animations.lua
["health_insurance"] = {
    category = "other",
    label = "Health Insurance",
    animDict = "anim@heists@humane_labs@finale@keycards",
    animName = "ped_a_enter_loop",
    animFlag = 49,
    bone = 18905,
    prop = "m-insurance_prop_card_health",
    propPos = { 0.17, 0.03, 0.04, 1.0, 184.0, 0.0},
},
["car_insurance"] = {
    category = "other",
    label = "Car Insurance",
    animDict = "anim@heists@humane_labs@finale@keycards",
    animName = "ped_a_enter_loop",
    animFlag = 49,
    bone = 18905,
    prop = "m-insurance_prop_card_vehicle",
    propPos = { 0.17, 0.03, 0.04, 1.0, 184.0, 0.0},
},
["car_registration"] = {
    category = "other",
    label = "Car Registration",
    animDict = "anim@heists@humane_labs@finale@keycards",
    animName = "ped_a_enter_loop",
    animFlag = 49,
    bone = 18905,
    prop = "m-insurance_prop_card_registration",
    propPos = { 0.17, 0.03, 0.04, 1.0, 184.0, 0.0},
},
["home_insurance"] = {
    category = "other",
    label = "Home Insurance",
    animDict = "anim@heists@humane_labs@finale@keycards",
    animName = "ped_a_enter_loop",
    animFlag = 49,
    bone = 18905,
    prop = "m-insurance_prop_card_house",
    propPos = { 0.17, 0.03, 0.04, 1.0, 184.0, 0.0},
},
```

{% endtab %}
{% endtabs %}

## Jobs Installation

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

```lua
insurance = {
	label = 'Insurance',
	type = 'insurance',
	defaultDuty = true,
	offDutyPay = false,
	grades = {
		['0'] = { name = 'Employee', payment = 50 },
	},
},
home_insurance = {
	label = 'Home Insurance',
	type = 'homeinsurance',
	defaultDuty = true,
	offDutyPay = false,
	grades = {
		['0'] = { name = 'Employee', payment = 50 },
	},
},
```

{% endtab %}

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

```lua
['insurance'] = {
	label = 'Insurance',
	defaultDuty = true,
	offDutyPay = false,
	grades = {
		[0] = {
			name = 'Employee',
			payment = 50
		},
	},
},

['home_insurance'] = {
	label = 'Insurance',
	defaultDuty = true,
	offDutyPay = false,
	grades = {
		[0] = {
			name = 'Employee',
			payment = 50
		},
	},
},
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mscripts.gitbook.io/docs/qbcore/general/qb-insurance/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
