Configuration

This page explains all the configurable options available in the config.lua file of the BHD_MOT script.

config.lua
Config = {
    Debug = false,
    TargetDistance = 5.0,
    CheckTimes = {
        horn = 5, -- in seconds
        lights = 5,
        neon = 5,
        door = 15, -- in seconds
        engine = 5,
        tires = 5,
    },
    IllegalHorns = {
        [1] = true,  -- HORN_POLICE
        [2] = false,  -- HORN_CLOWN
        [3] = false,  -- HORN_MUSICAL1
        [4] = false,  -- HORN_MUSICAL2
        [5] = false,  -- HORN_MUSICAL3
        [6] = false,  -- HORN_MUSICAL4
        [7] = false,  -- HORN_MUSICAL5
        [8] = false,  -- HORN_SADTROMBONE
        [9] = false,  -- HORN_CALSSICAL1
        [10] = false, -- HORN_CALSSICAL2
        [11] = false, -- HORN_CALSSICAL3
        [12] = false, -- HORN_CALSSICAL4
        [13] = false, -- HORN_CALSSICAL5
        [14] = false, -- HORN_CALSSICAL6
        [15] = false, -- HORN_CALSSICAL7
        [16] = false, -- HORN_SCALEDO
        [17] = false, -- HORN_SCALERE
        [18] = false, -- HORN_SCALEMI
        [19] = false, -- HORN_SCALEFA
        [20] = false, -- HORN_SCALESOL
        [21] = false, -- HORN_SCALELA
        [22] = false, -- HORN_SCALETI
        [23] = false, -- HORN_SCALEDO_HIGH
        [24] = false, -- HORN_JAZZ1
        [25] = false, -- HORN_JAZZ2
        [26] = false, -- HORN_JAZZ3
        [27] = false, -- HORN_JAZZLOOP
        [28] = false, -- HORN_STARSPANGBAN1
        [29] = false, -- HORN_STARSPANGBAN2
        [30] = false, -- HORN_STARSPANGBAN3
        [31] = false, -- HORN_STARSPANGBAN4
        [32] = false, -- HORN_CLASSICALLOOP1
        [33] = false, -- HORN_CLASSICAL8
        [34] = false, -- HORN_CLASSICALLOOP2
    },
    Neon = {
        CheckPositions = {
            [0] = true, -- Back neon
            [1] = false, -- Right neon
            [2] = false, -- Left neon
            [3] = true, -- Front neon
        },
        Colors = {
            { r = 255, g = 0,   b = 0,   illegal = true }, -- Red
            { r = 222, g = 222, b = 255, illegal = false }, -- White
            { r = 2,   g = 21,  b = 255, illegal = false }, -- Blue
            { r = 3,   g = 83,  b = 255, illegal = false }, -- Electric Blue
            { r = 0,   g = 255, b = 140, illegal = false }, -- Mint Green
            { r = 94,  g = 255, b = 1,   illegal = false }, -- Lime Green
            { r = 255, g = 255, b = 0,   illegal = false }, -- Yellow
            { r = 255, g = 150, b = 0,   illegal = false }, -- Golden Shower
            { r = 255, g = 62,  b = 0,   illegal = false }, -- Orange
            { r = 255, g = 50,  b = 100, illegal = false }, -- Pony Pink
            { r = 255, g = 5,   b = 190, illegal = false }, -- Hot Pink
            { r = 35,  g = 1,   b = 255, illegal = false }, -- Purple
            { r = 15,  g = 3,   b = 255, illegal = false } -- Blacklight
        }
    },
    AllowedHornsHeadLights = {
        [0] = true, -- White
        [255] = true, -- Default
    },
    Tire = {
        CheckTypes = {
            [0] = false, -- "Sport",
            [1] = false, -- "Muscle",
            [2] = false, -- "Lowrider",
            [3] = false, -- "SUV",
            [4] = true, -- "Offroad",
            [5] = false, -- "Tuner",
            [6] = false, -- "Motorcycle",
            [7] = false, -- "High End"
        },
        AllowedClasses = {
            [0] = false, -- "Compacts",
            [1] = false, -- "Sedans",
            [2] = true, -- "SUVs",
            [3] = false, -- "Coupes",
            [4] = false, -- "Muscle",
            [5] = false, -- "Sports Classics",
            [6] = false, -- "Sports",
            [7] = false, -- "Super",
            [8] = false, -- "Motorcycles",
            [9] = true, -- "Off-road",
            [10] = false, -- "Industrial",
            [11] = false, -- "Utility",
            [12] = false, -- "Vans",
            [13] = false, -- "Cycles",
        },
        AllowedModels = {
            `bmx`, -- BMX
        },
    },
    MinBodyHelthToPass = 900,
    MinEngineHelthToPass = 900,
    ItemName = "mot",
    Zones = {
        {
            name = "Bennys",
            coords = vec3(-194.0822, -1327.2191, 31.3005),
            size = vec3(7.0, 7.0, 6.0),
	    rotation = 0,
            groups = {['bennys'] = 0},
        },
    }
}

Debug

  • Enables or disables debug prints in the console.


Target Distance

  • The interaction distance for targets (zones or vehicle parts).


CheckTimes

  • Defines the duration (in seconds) for each MOT check type:

    • horn: Time required to test the horn.

    • lights: Time to check the vehicle lights.

    • neon: Duration to check neons.

    • door: Time per door for visual inspection.

    • engine: Engine inspection time.

    • tires: Tire inspection time.


IllegalHorns

  • Maps horn IDs to true if they are considered illegal.

  • During the horn check, if the horn ID matches one marked as true, it will be flagged as illegal.


Neon Configuration

  • CheckPositions: Which neon positions are required to be installed and visible.

  • Colors: Defines RGB values of allowed or illegal neon light colors.


AllowedHornsHeadLights

  • Allows specific headlight color codes. Others are flagged as illegal.


Tire Check Configuration

  • CheckTypes: Which tire types (by index) are checked.

  • AllowedClasses: Vehicle classes allowed to use specific tire types.

  • AllowedModels: Vehicle models exempt from tire restrictions.


Minimum Health Requirements

  • Minimum required health values for:

    • body: Vehicle body health (MOT body check).

    • engine: Vehicle engine health (MOT engine check).


Required Item

  • The item name for MOT certification.


Zones

  • Defines the MOT zones where inspections can be performed.

  • Each zone contains:

    • name: Internal name of the zone.

    • coords: Vector3 coordinates for the center of the zone.

    • size: Vector3 size dimensions.

    • rotation: Rotation angle of the zone.

    • groups: Job groups and minimum grade to access.


Summary

This configuration allows full customization of the MOT inspection system, including what to check, how long each check should take, and what is considered legal or illegal for vehicles.

Last updated