IsVehicleElectric

From GT-MP
Jump to: navigation, search
IsVehicleElectric
Server-Side Function
Utilities-terminal.png Server-Side Csharp.png C#


Checks if the specified vehicle model has an electric engine.


Syntax

API.isVehicleElectric(VehicleHash model);

Required Arguments

  • model: parameter input should be in VehicleHash type.

NOTE: This function returns data in bool type. true if engine is electric, false otherwise.

Usage example(s)

Example Description

API.isVehicleElectric(VehicleHash model);

Changelog

Version Description
1.638.634 Release.

References