Garry's Mod Wiki

Revision Difference

weapons.Get#527722

<function name="Get" parent="weapons" type="libraryfunc"> <description>Get a `copy` of weapon table by name. This function also inherits fields from the weapon's base class, unlike <page>weapons.GetStored</page>.</description>⤶ <description>Get a `copy` of weapon table by name. This function also inherits fields from the weapon's base class, unlike <page>weapons.GetStored</page>. <note> This will only work on SWEP's, this means that this will not return anything for HL2 weapons. </note>⤶ </description>⤶ <realm>Shared</realm> <args> <arg name="classname" type="string">Class name of weapon to retrieve</arg> </args> <rets> <ret name="" type="table">The retrieved table or nil</ret> </rets> </function>