Back to TPG

TPG.GetArmor

S🏷️ Armor

Part of TPG namespace

TPG.GetArmor(armorId)
View on GitHub|gamemode/config/sh_armor.lua:106-108
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

Look up an armor tier. The fallback for an unknown id is Light (id 1), not None (id 0); a nil or invalid armorId therefore does NOT come back as the unarmored tier, it comes back as the cheapest actually-armored one.

Parameters

NameTypeDescription
armorIdnumber

Returns

TypeDescription
tableThe matching entry from `TPG.Armor`.

Examples

No examples available.

Used In

No usages found in the codebase.