Garry's Mod Wiki

Garry's Mod Wiki

  table weapons.Get( string classname )

Description

Get a copy of weapon table by name. This function also inherits fields from the weapon's base class, unlike weapons.GetStored.

This will only work on SWEP's, this means that this will not return anything for HL2/HL:S weapons.

Arguments

1 string classname
Class name of weapon to retrieve

Returns

1 table
The retrieved table or nil

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...