Hooks/Server/PlayerCanPickupWeapon

From Official DarkRP Wiki
Revision as of 18:59, 21 February 2015 by FPtje (talk | contribs) (FPtje moved page Hooks/server/PlayerCanPickupWeapon to Hooks/Server/PlayerCanPickupWeapon: Capital Server)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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.