SWEP.Holster

From GMod Wiki

Revision as of 23:50, 23 October 2009 by Unrealomega (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Event Hook
Hook NameHolster
SyntaxSWEP:Holster( Weapon wep )
DescriptionCalled when weapon wants to holster
ReturnsBoolean
Lua StateNewerShared.png
BBCode[b][url=wiki.garrysmod.com/?title=SWEP.Holster]SWEP.Holster [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]

Example

DescriptionCode copied from the base gamemode.
Used onNewerShared.png
Code
function SWEP:Holster( wep )
	return true
end
OutputAllows the player to holster.


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox