Vehicles

config/vehicles.lua
Config.Vehicles = {
    ["car"] = {
        ["police"] = {
            ["police"] = {label = "Police Patrol 1", grade = 1},
            ["police2"] = {label = "Police Patrol 2", grade = 1},
            ["police3"] = {label = "Police Patrol 3", grade = 1},
            ["policeb"] = {label = "Police Patrol 4", grade = 2},
        },
        ["sheriff"] = {
            -- vehicle list of sheriff
        },
        ["ambulance"] = {
            -- vehicle list of paramedics
            ["ambulance"] = {label = "Ambulance", grade = 1},
        }
    },
    ["heli"] = {
        ["police"] = {
            ["polmav"] = {label = "Police maverick", grade = 3},
        },
        ["sheriff"] = {
            -- vehicle list of sheriff
        },
        ["ambulance"] = {
            -- vehicle list of paramedics
        }
    },
    ["boat"] = {
        ["police"] = {
            ["predator"] = {label = "Police Boat", grade = 1},
        },
        ["sheriff"] = {
            -- vehicle list of sheriff
        },
        ["ambulance"] = {
            -- vehicle list of paramedics
        }
    }
}

Config.Camara = {
    fov_max = 80.0,
    fov_min = 10.0,
    zoomspeed = 5.0,
    speed_lr = 5.0,
    speed_ud = 5.0
}

The list of vehicles that will be considered police, sheriff, ambulance, etc. This list is also used to know if the vehicles can use certain systems such as the megaphone, siren system, etc.

Config.SirensSystem = true -- To enable or disable the sirens system(Q -> turn on/off lights; ,-> turn on/off sirens)

Config.Sirens = {
    "VEHICLES_HORNS_SIREN_1",
    "VEHICLES_HORNS_SIREN_2",
    "VEHICLES_HORNS_POLICE_WARNING"
}

The list of the vehicle sirens. To use the system you've to be inside a police vehicle listed in the Config.Vehicles, keys: Q -> Enable / Disable lights

, -> Enable / Disable sirens

R -> If the sirens are disabled this key is going to enable the sirens until the R is released, if the sirens are enabled the sirens sound is going to change following the list in the Config.Sirens.

Config.DefaultCarCamOffset = vector3(0.0, 0.5, 0.7)
Config.CustomCarOffsets = { -- Modified offsets for special vehicles
    ["police"] =  vector3(0.0, 0.5, 0.7),
    ["police2"] =  vector3(0.0, 0.5, 0.7),
}

The DefaultCarCamOffset is a relative position for the dashcams , and the CustomCarOffsets are the same as the previous config but this is for specific cars that for example are taller than others.

Config.CustomCarLabels = { -- A list for custom vehicle labels, for the citizen search only will take this label if the vehicle label is NULL
    -- [GetHashKey("police")] = "POLICE PATROL",
    -- [GetHashKey("police2")] = "POLICE PATROL 2",
    -- [GetHashKey("police3")] = "POLICE PATROL 3",
}

Config.SpeedType = 'kmh' -- 'kmh' or 'mph'

Last updated