Part of TPG namespace
TPG.GetWeaponClass(category, id)📋 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
| Name | Type | Description |
|---|---|---|
category | string | "Primary", "Secondary", or "Special". |
id | string |
Returns
| Type | Description |
|---|---|
string | The class, or nil if the id is unknown, is `"none"`, or is |
Examples
No examples available.
Used In
No usages found in the codebase.