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:
To find all types for the FuelType
array, refer to the file located at rcore_fuel/const.lua
. Look for the following array:
Example of the "VehicleFuelType"
There is also the possibility to configure the fuel type for a specific vehicle class in the same config file mentioned above by using Config.SpecificFuelTypePerVehicleClass
.
This will enforce either diesel or natural gas as the fuel type for the "compacts" class. If you wish to enforce only one specific fuel type, it can be done as follows:
Now, all compacts will run only on natural gas.
Last updated