HUD
Functions

Vehicle: fuel Set

Sets the brand new vehicles fuel. Bound to a number between 0 and max fuel amount.

Used in: VCMod Main addon.

Server Entity Vehicle:VC_fuelSet(Integer amount)

Arguments

1. Integer amount; Amount of fuel.
The amount of fuel, in liters.

Example

concommand.Add("vehicle_setfuel", function()
	local ent = player.GetAll()[1]:GetEyeTraceNoCursor().Entity
	if IsValid(ent) then
		ent:VC_fuelSet(ent:VC_fuelGet()+5)
		print("Gave 5 extra liters of fuel to the vehicle")
	else
		print("Invalid entity.")
	end
end)
Page modified:
...2018-11-02 09:24:38