Part of TPG namespace
TPG.GetWeaponList(category, includeDisabled)📋 Has LDoc👁️ 0 viewsUpdated 1 month ago
Description
List weapons in a category, sorted by name with "None" always first. entry that is currently disabled (base toggle or explicit per-weapon toggle from TPG.Weapons.ApplyState) is left out entirely.
Parameters
| Name | Type | Description |
|---|---|---|
category | string | "Primary", "Secondary", or "Special". |
includeDisabled? | boolean | When false (the default), an(default: false) |
Returns
| Type | Description |
|---|---|
{table,...} | A list of `{ id, name, cost, enabled }`. |
Examples
No examples available.
Used In
No usages found in the codebase.