From DarkRP
Jump to navigation Jump to search
Hook name onDarkRPWeaponDropped(Player ply, Entity spawned_weapon, Weapon original_weapon)
When a player drops a weapon. Use this hook (in combination with PlayerPickupDarkRPWeapon) to store extra information about a weapon. This hook cannot prevent weapon dropping. If you want to prevent weapon dropping, use canDropWeapon instead.
Returns: nil
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/onDarkRPWeaponDropped]onDarkRPWeaponDropped hook[/url][/b]


  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. original_weapon (Weapon)
  6. The original weapon from which the spawned_weapon is made.

Return values[edit]

This hook does not accept return values. You can still return a value to override the default implementation of this hook.