SWEP.Holster
From GMod Wiki
| Event Hook | |
| Hook Name | Holster |
| Syntax | SWEP:Holster( Weapon wep ) |
| Description | Called when weapon wants to holster |
| Returns | Boolean |
| Lua State | |
| BBCode | [b][url=wiki.garrysmod.com/?title=SWEP.Holster]SWEP.Holster [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
| Description | Code copied from the base gamemode. |
|---|---|
| Used on | |
| Code | function SWEP:Holster( wep ) return true end |
| Output | Allows the player to holster. |
Additional Notes
- Return true to allow weapon to holster