Hooks/Server/onPocketItemAdded

From Official DarkRP Wiki
Revision as of 03:23, 12 February 2016 by EstevanTH (talk | contribs) (Wrong page edit: Undo revision 3860 by EstevanTH (talk))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hook
Hook name onPocketItemAdded(Player ply, Entity ent, table serialized)
Description:
Called when an entity is added to the pocket.
Returns: nil
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.darkrp.com/index.php?title=Hooks/Server/onPocketItemAdded]onPocketItemAdded hook[/url][/b]

Parameters

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

  3. ent (Entity)
  4. The entity.

  5. serialized (table)
  6. The serialized version of the pocketed entity.

Return values

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