weapons.Get

From Garry's Mod
Jump to: navigation, search
 weapons.Get( )

Description

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

Arguments

string classname

Class name of weapon to retrieve

Returns

table

The retrieved table or nil
Personal tools
Navigation