SWEP.OnRemove
From GMod Wiki
| Event Hook | |
| Hook Name | OnRemove |
| Syntax | SWEP:OnRemove( ) |
| Description | Called right before the weapon is removed. |
| Returns | Nil |
| Lua State | |
| BBCode | [b][url=wiki.garrysmod.com/?title=SWEP.OnRemove]SWEP.OnRemove [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Prints a message when removed. |
|---|---|
| Used on | |
| Code | function SWEP:OnRemove() print("If I am no more, then what am I?") end |
| Output | N/A |