Garry's Mod Wiki

weapons.Get

weapons.Get

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 weapons.

Arguments

1 string classname
Class name of weapon to retrieve

Returns

1 table
The retrieved table or nil

Special Pages


Wikis

?

Render Time: 66ms

DB GetPage 46
Generate Html 3
SaveChanges (1) 8
Render Body 0
Render Sidebar 7