GetVehicleModSlotName

From GT-MP
Jump to: navigation, search
GetVehicleModSlotName
Client-Side Function
System-users.png Client-Side Javascript.png JavaScript
Dialog-warning.png Note: This feature is currently not in the API, or is currently not accurate on the wiki due to upcoming API changes. New API functions and changes will be released with the next update.

Returns the name for the type of vehicle mod(Armour, engine, etc)

Syntax

string API.getVehicleModSlotName(LocalHandle vehicle, int modType);

Required Arguments

  • vehicle: parameter input should be in LocalHandle type.
  • modType: parameter input should be in int type.


NOTE: This function returns data in string type.

Usage example(s)

var text = API.getVehicleModSlotName(LocalHandle vehicle, int modType);

// Send a notification and use the language of the Client for the name
API.sendNotification('Mod Slot Name: ~b~' + API.getGameText(text));


References

sendNotification

getGameText