Hooks/Server/canDropWeapon

From DarkRP
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: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/canDropWeapon]canDropWeapon hook[/url][/b]

Parameters[edit]

  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[edit]

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