Hooks/Server/PlayerPickupDarkRPWeapon

From Official DarkRP Wiki
Jump to navigation Jump to search
Hook
Hook name PlayerPickupDarkRPWeapon(Player ply, Entity spawned_weapon, Weapon real_weapon)
Description:
When a player picks up a spawned_weapon.
Returns: boolean ShouldntContinue
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/PlayerPickupDarkRPWeapon]PlayerPickupDarkRPWeapon hook[/url][/b]

Parameters

  1. ply (Player)
  2. The player who dropped the weapon.

  3. spawned_weapon (Entity)
  4. The spawned_weapon created from the weapon that is dropped.

  5. real_weapon (Weapon)
  6. The actual weapon that will be used by the player.

Return values

  1. ShouldntContinue (boolean)
  2. Whether weapon should be picked up or not.