Kartik Scripts

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:

ParameterWhat it does
boneThe bone on the flatbed vehicle where the towed car will be attached. Usually 'bodyshell'.
offsetA vector3 defining the X, Y, and Z offset from the bone where the car will sit.
rotationA vector3 defining the rotation of the loaded vehicle.

Restrictions

Config.Flatbed.MaxDistance = 10.0
Config.Flatbed.JobRequired = true
SettingWhat it does
MaxDistanceThe maximum distance (in meters) the vehicle to be loaded can be from the flatbed.
JobRequiredWhen true, only players with a mechanic job can use the flatbed loading controls.

On this page