IsPlayerPickpocketable
Whether the player’s pockets may be picked.
Syntax
Section titled “Syntax”IsPlayerPickpocketable(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”boolean - true unless SetPlayerPickpocketable took them out; false for an id that is no player (whether pickpocketing is on at all is GetPickpocketing’s)
Example
Section titled “Example”if not IsPlayerPickpocketable(target) then SendClientMessage(pid, COLOR_RED, "Their pockets are sewn shut.") endSee also
Section titled “See also”SetPlayerPickpocketable · CanPlayerPickpocket · the Pickpocketing group of the index
