β½RHD Fuel
Installation:
Open the
config
folder and configure it to your liking.
return {
-- Fuel consumption by vehicle class
class = {
[0] = 20.0, -- Compacts
[1] = 20.0, -- Sedans
[2] = 20.0, -- SUVs
[3] = 20.0, -- Coupes
[4] = 20.0, -- Muscle
[5] = 20.0, -- Sports Classics
[6] = 20.0, -- Sports
[7] = 20.0, -- Super
[8] = 20.0, -- Motorcycles
[9] = 20.0, -- Off-road
[10] = 20.0, -- Industrial
[11] = 20.0, -- Utility
[12] = 20.0, -- Vans
[13] = 0.0, -- Cycles
[14] = 20.0, -- Boats
[15] = 20.0, -- Helicopters
[16] = 20.0, -- Planes
[17] = 20.0, -- Service
[18] = 20.0, -- Emergency
[19] = 20.0, -- Military
[20] = 20.0, -- Commercial
[21] = 0.0, -- Trains (lol)
},
-- Fuel consumption by vehicle model
custom = {
-- [`elegy`] = 25.0, -- Example: Fuel consumption for Elegy set to 25.0
-- [`t20`] = 30.0, -- Example: Fuel consumption for T20 set to 30.0
},
-- If you want to make a particular vehicle not consume fuel/battery, such as a bicycle, enter the spawn code in this table.
model = {
-- [`kuruma`] = true, -- Kuruma will not consume fuel
-- [`bicycle`] = true, -- Bicycle will not consume fuel
},
--[[
Explanation for this section:
1. This variable will not work on vehicles that are registered in the `model` table with a value of `true` (meaning they do not consume fuel/battery).
If a vehicle is listed in the `model` table with `true`, it will not be affected by fuel consumption or tank volume settings.
2. Do not set the value of the `global` variable in the `tankVolume` table to be below 1.0, as doing so will cause the script to not work properly.
3. If you want to set a custom fuel tank volume for specific vehicles, you can add them in the `custom` table inside the `tankVolume` table.
This way, specific vehicles will have their own custom fuel tank volume.
]]
tankVolume = {
global = 4.0, -- Default fuel tank volume for all vehicles is 4.0
custom = {
-- [`kuruma`] = 5.0, -- Fuel tank volume for Kuruma set to 5.0
-- [`elegy`] = 6.0, -- Fuel tank volume for Elegy set to 6.0
}
}
}
Then, start in
server.cfg
like the code below:
ensure ox_lib
ensure es_extended
ensure ox_inventory
ensure interact
ensure rhd_fuel
Dependencies:
Last updated