GetWeaponTextLabel

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

Gets the Textlabel from a Weapon

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.getWeaponTextLabel(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.getWeaponTextLabel(WeaponHash weaponHash);

References