GetWeaponName

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

Gets the Weaponname of a Weaponhash

Dialog-warning.png Note: This feature is currently not in the API, or is currently not accurate on the wiki due to Upcoming_API_features New API functions and changes will be released with the next update. This feature is available in the most recently released Open Beta version. However, not in the current stable version.


Syntax

In C#
Server-Side Function

API.getWeaponName(WeaponHash weaponHash);

Required Arguments

  • weaponHash parameter input should be in WeaponHash type.


NOTE: This function returns data in non-readable string type. Use tryGetLocalizedGameText to translate it in a human readable text

Usage example

In C#
Server-Side Function

API.getWeaponName(WeaponHash weaponHash);

References