GetWeaponComponentNames

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

Gets a Dictionary with all posible components

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.

Syntax

In C#
Server-Side Function

API.getWeaponComponentNames(WeaponHash weaponHash);

Required Arguments

  • weaponHash parameter input should be in WeaponHash type.


NOTE: This function returns data in Dictionary<WeaponComponent, Tuple<string, string>> type.

  • First item in Tuple is the title of the component
  • Second item in Tuple is the description of the component

Usage example

In C#
Server-Side Function

API.getWeaponComponentNames(WeaponHash weaponHash);

References