SWEP.Holster

From GMod Wiki

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