utils.weapon.getLabel¶
utils.weapon.getLabel(weaponName)
Arguments¶
| Argument | Data Type | Optional | Default Value | Explanation | 
|---|---|---|---|---|
| weaponName | string | No | - | Sets weapon name | 
Note
You can see all weapons here <Link not create yet>.
Dependency¶
local utils = M("utils")
Example¶
local weaponLabel = utils.weapon.getLabel('WEAPON_ASSAULTRIFLE')
print(weaponLabel) -- Returns label of weapon