API Reference - Car.GetFuelLevel()
Car.GetFuelLevel()
Car.GetFuelLevel()
Description | Gets the current fuel level of the vehicle. |
Response | Number The fuel level of the car in percentage. |
Parameter | Void |
Example
1
2
3
var fuelLevel = Car.GetFuelLevel()
// fuelLevel = 60 %
alert("You are at" + fuelLevel + "of fuel left")
Appeared in Software version 30.04.48.50