GetVehicleHealth

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

Gets the vehicle's (engine) health. This API is equal to getVehicleEngineHealth.

Syntax

In C#
Server-Side Function

API.getVehicleHealth(Nethandle vehicle);

Required Arguments

  • vehicle parameter input should be in Nethandle type.

In Javascript
Client-Side Function

API.getVehicleHealth(Nethandle vehicle);

Required Arguments

  • vehicle parameter input should be in Nethandle type.

Usage example

In C#
Server-Side Function

API.getVehicleHealth(Nethandle vehicle);

In Javascript
Client-Side Function

API.getVehicleHealth(Nethandle vehicle);

References