HUD
Functions

Vehicle: fuel Consume

Takes away vehicles fuel.

Used in: VCMod Main addon.

Server Entity Vehicle:VC_fuelConsume(Integer amount)

Arguments

1. Integer amount; Amount of fuel.
The amount of fuel, in liters, that needs to be taken away.

Example

concommand.Add("vehicle_consumefuel", function()
	local ent = player.GetAll()[1]:GetEyeTraceNoCursor().Entity
	if IsValid(ent) then
		ent:VC_fuelConsume(20)
		print("Vehicle consumed 20 liters of fuel, maybe time to get a prius?")
	else
		print("Invalid entity.")
	end
end)
Page modified:
...2018-11-02 09:24:37