From DarkRP
Jump to navigation Jump to search
Hook name canDropPocketItem(Player ply, table item, table serialized)
Whether someone is allowed to drop something from their pocket.
Returns: boolean answer, string message
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/canDropPocketItem]canDropPocketItem hook[/url][/b]


  1. ply (Player)
  2. The pocket holder.

  3. item (table)
  4. The pocket item's index in the pocket.

  5. serialized (table)
  6. The pocket item.

Return values[edit]

  1. answer (boolean)
  2. Whether the item can be dropped.

  3. message (string)
  4. The message to send to the player when the answer is false.