Garry's Mod Wiki

weapons.GetStored

  table weapons.GetStored( string weapon_class )

Description

Gets the REAL weapon table, not a copy. The produced table does not inherit fields from the weapon's base class, unlike weapons.Get.

Modifying this table will modify what is stored by the weapons library. Take a copy or use weapons.Get to avoid this.

Arguments

1 string weapon_class
Weapon class to retrieve weapon table of

Returns

1 table
The weapon table