GetVehiclePetrolTankHealth

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


See also: SetVehiclePetrolTankHealth

Returns the durability of the petrol tank of the specified vehicle.

Syntax

In C#
Server-Side Function

float API.getVehiclePetrolTankHealth(NetHandle vehicle);

Required Arguments

  • vehicle: parameter input should be in NetHandle type.

In Javascript
Client-Side Function

float API.getVehiclePetrolTankHealth(LocalHandle entity);

Required Arguments

  • entity: parameter input should be in LocalHandle type.

NOTE: This function returns data in float type.

Usage example(s)

API.getVehiclePetrolTankHealth(LocalHandle entity);


References