Change fuel type for vehicle

Location

This configuration is located in rcore_fuel/config/fuel_config.lua.

Vehicle Fuel Type Configuration

The configuration is managed within the Config.VehicleFuelType array.

Structure

The array structure consists of:

  • model: The spawn model of the vehicle.

  • fuelType The fuel type for the specific model.

Example of a new entry:

{
    model = "myCar",
    fuelType = FuelType.NATURAL,
}

To find all types for the FuelType array, refer to the file located at rcore_fuel/const.lua. Look for the following array:

FuelType = {
    NATURAL = 1,
    DIESEL = 2,
    EV = 3,
    LPG = 4,
    CNG = 5,
    MILK = 6,
    AVIATION = 7,
}

Example of the "VehicleFuelType"

Config.VehicleFuelType = {
    -- entry 1
    {
        model = "tesla",
        fuelType = FuelType.EV,
    },
    -- entry 2
    {
        model = "phantom3",
        fuelType = FuelType.DIESEL,
    },
    -- entry 3
    {
        model = "pavel",
        fuelType = FuelType.MILK,
    },
}

Last updated