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)
1. Integer amount; Amount of fuel.
The amount of fuel that needs to be given to the canister in liters.
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)