GetPlayerCarriedBy
Who carries the player.
Syntax
Section titled “Syntax”GetPlayerCarriedBy(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the carried player |
Returns
Section titled “Returns”string, number - the kind - "player" or "actor" - and the id (a player’s id, or the entity id); nil when nobody carries them
Example
Section titled “Example”local kind, id = GetPlayerCarriedBy(pid)if kind == "player" then SendClientMessage(id, COLOR_SERVER, "Your prisoner is " .. GetPlayerName(pid)) endSee also
Section titled “See also”GetPlayerCarrying · IsPlayerCarried · the Carrying group of the index
