Back to TPG

TPG.Gear.Name

S🏷️ Gear

Part of TPG namespace

TPG.Gear.Name(kind, id)
View on GitHub|gamemode/config/sh_gear.lua:222-233
📋 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

NameTypeDescription
kindstring`"armor"` or `"weapon"`.
idstring|numberArmor id or weapon class/virtual id.

Returns

TypeDescription
stringThe armor tier's name, the weapon entry's name, or

Examples

No examples available.

Used In

No usages found in the codebase.