GetVehicleDisplayName

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

Get`s display name for vehicle.

Syntax

In C#
Server-Side Function

API.getVehicleDisplayName(VehicleHash model);

Required Arguments

  • model parameter input should be in VehicleHash type.


NOTE: This function returns data in string type.

In Javascript
Client-Side Function

API.getVehicleDisplayName(VehicleHash model);

Required Arguments

  • model parameter input should be in VehicleHash type.


NOTE: This function returns data in string type.

Usage example

In C#
Server-Side Function

string displayName = API.getVehicleDisplayName(modelHash);

In Javascript
Client-Side Function

var displayName = API.getVehicleDisplayName(API.getEntityModel(modelHash))

References