GetVehicleOilLevel

From GT-MP
Jump to: navigation, search
GetVehicleOilLevel
Shared Function
Utilities-terminal.png Server-Side System-users.png Client-Side
Csharp.png C# Javascript.png JavaScript


See also: SetVehicleOilLevel


Returns the current oil level of the vehicle.

Syntax

In C#
Server-Side Function

float API.getVehicleOilLevel(NetHandle vehicle);

Required Arguments

  • vehicle: parameter input should be in NetHandle type.

In Javascript
Client-Side Function

float API.getVehicleOilLevel(LocalHandle vehicle);

Required Arguments

  • vehicle: parameter input should be in LocalHandle type.


NOTE: This function returns data in float type.

Usage example(s)

API.getVehicleOilLevel(LocalHandle vehicle);


References