GetVehicleClassName

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

Gets the vehicle class name associated with the given vehicle hash / class id.

See Vehicle Classes for a list of classes.

Syntax

API.getVehicleClassName(int classId);
API.getVehicleClassName(VehicleHash model);

Required Arguments

- Overload 1:

  • classId: parameter input should be in int type.

- Overload 2:

  • model: parameter input should be in VehicleHash type.

NOTE: This function returns data in string type.

Usage example(s)

Example Description

API.getVehicleClassName(int classId);
API.getVehicleClassName(VehicleHash model);

Changelog

Version Description
1.638.634 Release.

References