GetPickpocketTarget
Whom a player robs now.
Syntax
Section titled “Syntax”GetPickpocketTarget(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the thief |
Returns
Section titled “Returns”string, number - the kind - "player" or "actor" - and the id (a player’s id, or the entity id); nil when they rob nobody
Example
Section titled “Example”local kind, id = GetPickpocketTarget(pid)if kind == "player" then SendClientMessage(id, COLOR_SERVER, "Somebody is behind you.") endSee also
Section titled “See also”CancelPickpocket · OnPlayerPickpocketStart · the Pickpocketing group of the index
