Hooks/Server/canDropWeapon

From Official DarkRP Wiki
Jump to: navigation, search
Hook
Hook name canDropWeapon(Player ply, Weapon weapon)
Description:
Whether a player can drop a certain weapon.
Returns: boolean canDrop
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/canDropWeapon]canDropWeapon hook[/url][/b]

Parameters

  1. ply (Player)
  2. The player who wants to drop the weapon.

  3. weapon (Weapon)
  4. The weapon the player wants to drop.

Return values

  1. canDrop (boolean)
  2. Whether the player can drop the weapon.