Back to TPG

TPG.GetWeaponClass

S🏷️ Weapons

Part of TPG namespace

TPG.GetWeaponClass(category, id)
View on GitHub|gamemode/config/sh_weapons.lua:377-380
📋 Has LDoc👁️ 0 viewsUpdated 1 month ago

Description

The SWEP class behind a discovered weapon id. a virtual entry with no single class (see multipleClasses/fallbackClass on the entry itself for those).

Parameters

NameTypeDescription
categorystring"Primary", "Secondary", or "Special".
idstring

Returns

TypeDescription
stringThe class, or nil if the id is unknown, is `"none"`, or is

Examples

No examples available.

Used In

No usages found in the codebase.