Garry's Mod Wiki

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

Page Links


Special Pages


Wikis

?

Render Time: 26ms

DB GetPage 5
Generate Html 3
SaveChanges (1) 10
Render Body 0
Render Sidebar 6