Garry's Mod Wiki

weapons.GetList

table weapons.GetList()

Description

Get a list of all the registered SWEPs. This does not include weapons added to spawnmenu manually.

Returns

1 table
List of all the registered SWEPs

Example

Example structure.

Output:
1: Folder = weapons/weapon_myweapon ClassName = weapon_myweapon -- The rest of the SWEP table 2: Folder = weapons/weapon_myweapon2 ClassName = weapon_myweapon2 -- The rest of the SWEP table

Page Links


Special Pages


Wikis

?

Render Time: 57ms

DB GetPage 29
Generate Html 3
SaveChanges (1) 10
Render Body 0
Render Sidebar 12