Hooks/Server/canPocket

From Official DarkRP Wiki
Jump to navigation Jump to search
Hook
Hook name canPocket(Player ply, Entity item)
Description:
Whether a player can pocket a certain item.
Returns: boolean answer, string message
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/canPocket]canPocket hook[/url][/b]

Parameters

  1. ply (Player)
  2. The player.

  3. item (Entity)
  4. The item to be pocketed.

Return values

  1. answer (boolean)
  2. Whether the entity can be pocketed.

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