Hooks/Server/canDropWeapon
Jump to navigation
Jump to search
Hook | |
Hook name | canDropWeapon(Player ply, Weapon weapon) |
Description: | |
Whether a player can drop a certain weapon. | |
Returns: | boolean canDrop |
Realm: |
![]() |
BBCode Link: | [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/canDropWeapon]canDropWeapon hook[/url][/b] |
Parameters[edit]
- ply (Player)
- weapon (Weapon)
The player who wants to drop the weapon.
The weapon the player wants to drop.
Return values[edit]
- canDrop (boolean)
Whether the player can drop the weapon.