HUD
Functions

Vehicle: fuel Add

Adds this amount of fuel to a vehicle.

Used in: VCMod Main addon.

Server Entity Vehicle:VC_fuelAdd(Integer amount)

Arguments

1. Integer amount; Amount of fuel.
The amount of fuel that will be added in liters.

Example

concommand.Add("vehicle_refuel", function()
	local ent = player.GetAll()[1]:GetEyeTraceNoCursor().Entity
	if IsValid(ent) then
		ent:VC_fuelAdd(40)
		print("Adding some fuel.")
	else
		print("Invalid entity.")
	end
end)
Page modified:
...2018-11-02 09:24:37