Hooks/Server/PlayerCanPickupWeapon

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

Parameters

  1. ply (Player)
  2. The player.

  3. weapon (Weapon)
  4. The weapon

Return values

  1. canPickup (boolean)
  2. Whether it can be picked up.