SWEP.ShouldDropOnDie
From GMod Wiki
| Event Hook | |
| Hook Name | ShouldDropOnDie |
| Syntax | SWEP:ShouldDropOnDie( ) |
| Description | Should weapon be dropped when player dies. Return true if it should, return false if it shouldn't. |
| Returns | Nil |
| Lua State | |
| BBCode | [b][url=wiki.garrysmod.com/?title=SWEP.ShouldDropOnDie]SWEP.ShouldDropOnDie [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
| Description | Makes the weapon undroppable. |
|---|---|
| Used on | |
| Code | function SWEP:ShouldDropOnDie() return false end |
| Output | None |