SWEP.OnRemove

From GMod Wiki

Jump to: navigation, search
Event Hook
Hook NameOnRemove
SyntaxSWEP:OnRemove( )
DescriptionCalled right before the weapon is removed.
ReturnsNil
Lua StateNewerShared.png
BBCode[b][url=wiki.garrysmod.com/?title=SWEP.OnRemove]SWEP.OnRemove [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]

Examples

DescriptionPrints a message when removed.
Used onNewerShared.png
Code
function SWEP:OnRemove()
	print("If I am no more, then what am I?")
end
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox