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

# Installation

## Step 1 - Install Resource

Download the resource from your [keymaster](https://keymaster.fivem.net/asset-grants), add it to your resources in any folder of your choice.

## Step 2 - Edit Target

Add the below to the end of `Config.VehicleMenu` in `mythic-targeting`.

```lua
{
    icon = 'truck-ramp-box',
    isEnabled = function(data, entityData)
        local veh = entityData.entity
        local vehEnt = Entity(veh)
        if DoesEntityExist(veh) and not IsVehicleAttachedToTrailer(veh) and vehEnt.state.truckingVeh and not vehEnt.state.attachedToTrailer then
            local rearWheel = GetEntityBoneIndexByName(veh, 'wheel_lr')
            local rearWheelCoords = GetWorldPositionOfEntityBone(veh, rearWheel)
            local pos = LocalPlayer.state.position and LocalPlayer.state.position or GetEntityCoords(LocalPlayer.state.ped, false)
            if #(rearWheelCoords - pos) <= 3.0 then
                return true
            end
        end
        return false
    end,
    text = 'Trucking - Attach Trailer',
    event = 'Trucking:Client:AttachTrailer',
    data = {},
    minDist = 2.0,
    jobs = false
},
{
    icon = 'truck-ramp-box',
    isEnabled = function(data, entityData)
        local veh = entityData.entity
        local vehEnt = Entity(veh)
        if DoesEntityExist(veh) and IsVehicleAttachedToTrailer(veh) and vehEnt.state.truckingVeh and vehEnt.state.attachedToTrailer and vehEnt.state.inTrailerDeliverZone then
            local rearWheel = GetEntityBoneIndexByName(veh, 'wheel_lr')
            local rearWheelCoords = GetWorldPositionOfEntityBone(veh, rearWheel)
            local pos = LocalPlayer.state.position and LocalPlayer.state.position or GetEntityCoords(LocalPlayer.state.ped, false)
            if #(rearWheelCoords - pos) <= 3.0 then
                return true
            end
        end
        return false
    end,
    text = 'Trucking - Deliver Trailer',
    event = 'Trucking:Client:DeliverTrailer',
    data = {},
    minDist = 2.0,
    jobs = false
},
```

## Step 3 - Edit Config

* If you have renamed `mythic-base` at all then you can edit the calls for that in `ff_trucking/configs/shared.lua` the field to edit is called `SharedConfig.BaseName = "mythic-base"`. Just simply change the string content to the name of your mythic framework base.
* (Requires [ff\_payment](https://fiveforge.tebex.io/package/6388038)) - Head into `ff_trucking/configs/server.lua` and set `ServerConfig.Payment = false` to `true` if you wish to use our Mythic Payment system.

## Step 4 - Ensuring Resource

Open your `server.cfg` file and at the bottom of your resources make sure to ensure the reason by typing `ensure ff_trucking` and then saving your file.
