Shared Entity Vehicle:VC_fuelGetType()
1. Integer The fuel types ID. Available options: 0 - Petrol; 1 - Diesel; 2 - Electricity.
2. String The name of the fuel type.
concommand.Add("vehicle_getfuel", function()
local ent = player.GetAll()[1]:GetEyeTraceNoCursor().Entity
if IsValid(ent) then
print("Vehicle you are currently looking at fuel type is: "..ent:VC_fuelGetType(true)..".")
else
print("Invalid entity.")
end
end)