HUD
Functions

Fuel canister: fuel Canister Set

Refuels the fuel canister that is on the ground or in hands.

Can be a VCMod fuel pickup or the equiped weapon.

Used in: VCMod Main addon.

Server Entity Fuel canister:VC_fuelCanisterSet(Integer amount)

Arguments

1. Integer amount; Amount of fuel.
The amount of fuel that needs to be given to the canister in liters.

Example

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