Skip to content

GetPickpocketTarget

Whom a player robs now.

GetPickpocketTarget(pid)
Parameter Type
pid number the thief

string, number - the kind - "player" or "actor" - and the id (a player’s id, or the entity id); nil when they rob nobody

local kind, id = GetPickpocketTarget(pid)
if kind == "player" then SendClientMessage(id, COLOR_SERVER, "Somebody is behind you.") end

CancelPickpocket · OnPlayerPickpocketStart · the Pickpocketing group of the index