GetPlayerCarrying
Whom or what the player carries.
Syntax
Section titled “Syntax”GetPlayerCarrying(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the carrier |
Returns
Section titled “Returns”string, number - the kind - "player", "corpse" or "actor" - and the id (a player’s id, or the entity id); nil when they carry nothing
Example
Section titled “Example”local kind, id = GetPlayerCarrying(pid)if kind == "player" then SendClientMessage(pid, COLOR_SERVER, "You carry " .. GetPlayerName(id)) endSee also
Section titled “See also”GetPlayerCarriedBy · GetEntityCarrier · IsPlayerCarrying · the Carrying group of the index
