❗First Configuration

All information for the first configuration of the script

This explains which settings can be made in Config.lua and what effects they have on the script.

We will skip the settings Config.Language, Config.Target and Config.Webhook and start directly with Config.GarageSettings, as these settings have the greatest influence on the script


Config.GarageSettings

Config.GarageSettings = {
    loadFromDatabase = true,
    resetOnStartup = true,
    limetedVehicles = false,
    storeMetadata = {
        vehicleData = true,
        vehicleDamage = true,
        vehicleFuel = true,
    }
}

The Config.GarageSettings apply to all created garages and vehicles, each of the setting options is explained in the course of this tutorial


loadFromDatabase

If this setting is on, the vehicle data is loaded directly from the database. As soon as this setting is set to true, the limietedVehicles setting is ignored by the script

resetOnStartup

If resetOnStartup is active, the garages are reset each time the script is started. This means that all vehicles are parked back in their garage. This setting is particularly useful if loadFromDatabase is also active


storeMetadata

The store metadata settings refer to the vehicles parked in the garage. All this data is reset when the script is restarted and loadFromDatabase is not active.

vehicleData

Saves modified tuning and appearance of the vehicle

vehicleDamage

Storage of the damage to the vehicle

vehicleFuel

Stores the amount of fuel in the vehicle. If this setting is false, all vehicles are parked with 100% fuel.

Last updated