HUD
Functions

Vehicle: fuel Set Consumption Multiplier

Sets the fuel consumption multiplier of each vehicle.

Used in: VCMod Main addon.

Server Entity Vehicle:VC_fuelSetConsumptionMultiplier(Integer val)

Arguments

1. Integer val; Multiplier.
Default is 1.

Example

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)
Page modified:
...2019-04-06 14:38:00