Server Entity Vehicle:VC_fuelAdd(Integer amount)
1. Integer amount; Amount of fuel.
The amount of fuel that will be added in liters.
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)