Back to TPG

TPG.Gear.Key

S🏷️ Gear

Part of TPG namespace

TPG.Gear.Key(kind, id)
View on GitHub|gamemode/config/sh_gear.lua:129-132
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Stable identifier for one item, used as the cooldown key on both realms. weapon).

Parameters

NameTypeDescription
kindstring`"armor"` or `"weapon"` (anything else is treated as a
idstring|numberArmor id or weapon class/virtual id.

Returns

TypeDescription
string`"armor:<id>"` for armor, `tostring(id)` otherwise.

Examples

No examples available.

Used In

No usages found in the codebase.