weapons.Get

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

Description

Get copy of weapon table by name. If all you need to do is access a variable from the weapon table, use weapons.GetStored instead.

Arguments

string classname

Class name of weapon to retrieve

Returns

table

The retrieved table or nil
Personal tools
Navigation