TPG.Gear.Name(kind, id)📋 Has LDoc👁️ 0 viewsUpdated 1 month ago
Description
Display name for chat/menu messages, whichever kind it is. tostring(id) as a last resort if nothing matches (e.g. an id from a weapon pack that has since been removed).
Parameters
| Name | Type | Description |
|---|---|---|
kind | string | `"armor"` or `"weapon"`. |
id | string|number | Armor id or weapon class/virtual id. |
Returns
| Type | Description |
|---|---|
string | The armor tier's name, the weapon entry's name, or |
Examples
No examples available.
Used In
No usages found in the codebase.