GetPlayerCarryItem
What a player carries in his hands, if anything.
Syntax
Section titled “Syntax”GetPlayerCarryItem(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”number, string | nil - the carry item’s entity id and its item’s name (or class GUID) - from the moment his pickup starts; nil when he carries none
Example
Section titled “Example”local id, item = GetPlayerCarryItem(pid)if id then SendClientMessage(pid, COLOR_SERVER, "You carry " .. item) endSee also
Section titled “See also”GetCarryItemHolder · PickUpCarryItem · the Carry items group of the index
