Back to TPG

TPG.GetArmorModel

S🏷️ Armor

Part of TPG namespace

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

Description

The player model to use for an armor tier, resolving any random variant. Some tiers (currently None and Light) use a model path with a literal %d placeholder for several numbered models (Male_01.mdl .. Male_09.mdl); this picks one at random each call, so calling it twice for the same armor can return different models. Tiers with a fixed model path return it unchanged.

Parameters

NameTypeDescription
armorIdnumber

Returns

TypeDescription
stringA concrete model path, ready to pass to SetModel.

Examples

No examples available.

Used In

No usages found in the codebase.