Sets the fuel consumption multiplier of each vehicle.
Used in: VCMod Main addon.
Server Entity Vehicle:VC_fuelSetConsumptionMultiplier(Integer val)
1. Integer val; Multiplier.
Default is 1.
concommand.Add("VC_MakeVehicleConsumeLessFuel", function()
local ent = player.GetAll()[1]:GetEyeTraceNoCursor().Entity
if IsValid(ent) and ent:GetVelocity() > 500 then
ent:VC_fuelSetConsumptionMultiplier">VC_fuelSetConsumptionMultiplier(0.2)
print("Highly optimised fuel consumption of this vehicle.")
else
print("Invalid entity.")
end
end)