Flatbed System

πŸ“„ Config file: shared/flatbed_config.lua

This file configures which vehicles act as flatbeds and the technical details of how they load other vehicles.


Model Configuration

Config.Flatbed = {
    Models = {
        ['flatbed'] = {
            bone = 'bodyshell',
            offset = vector3(0.0, -1.5, 0.8),
            rotation = vector3(0.0, 0.0, 0.0)
        },
    },
}

You can add support for add-on flatbed vehicles here. Each model requires the following parameters:

Parameter
What it does

bone

The bone on the flatbed vehicle where the towed car will be attached. Usually 'bodyshell'.

offset

A vector3 defining the X, Y, and Z offset from the bone where the car will sit.

rotation

A vector3 defining the rotation of the loaded vehicle.


Restrictions

Setting
What it does

MaxDistance

The maximum distance (in meters) the vehicle to be loaded can be from the flatbed.

JobRequired

When true, only players with a mechanic job can use the flatbed loading controls.

Last updated