# Installation

## Script Download

{% stepper %}
{% step %}

### Log Into CFX Portal

[CFX Portal](https://portal.cfx.re/assets/granted-assets)
{% endstep %}

{% step %}

### Granted Assets

Navigate to the **assets** page to find the resource.
{% endstep %}
{% endstepper %}

## Script Setup

{% stepper %}
{% step %}

### Adding Inventory Items

QB-Core Items Are Automatically Added!

OX\_Inventory Items Setup:&#x20;

```lua
['towremote'] = {
    label = 'Tow Remote',
    weight = 100,
},
['reponote'] = {
    label = 'Tow Note',
    weight = 100,
},
```

{% endstep %}

{% step %}

### Adding Inventory Images

Go to **pug-repojob/itemPNGS** then go to your inventory and paste all images directly into images folder.
{% endstep %}
{% endstepper %}

## Optional Additions

{% stepper %}
{% step %}

### Sound Effects

Install the sound files in the **pug-repojob/InteractSoundFiles** into **\[standalone]/interact-sound/client/html/sounds** if you want the 4 sound effects along with the script
{% endstep %}

{% step %}

### Allow Users to Own Vehicle (QBCore)

If you want to allow players to **own and store a `flatbed3` truck**, you'll need to modify the `delete vehicle` function. This ensures the flatbed is not left floating when parked.

```lua
function QBCore.Functions.DeleteVehicle(vehicle)
    SetEntityAsMissionEntity(vehicle, true, true)
    DeleteVehicle(vehicle)
    TriggerEvent("Pug:client:PutFlatbedAwayCustomEvent")
end
```

{% endstep %}
{% endstepper %}

## [Script Support & Dependencies](/pug-development/scripts/repo-job/dependency-and-support.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://pugdocuments.gitbook.io/pug-development/scripts/repo-job/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.
