Skip to content

GetPlayerCarriedBy

Who carries the player.

GetPlayerCarriedBy(pid)
Parameter Type
pid number the carried player

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

local kind, id = GetPlayerCarriedBy(pid)
if kind == "player" then SendClientMessage(id, COLOR_SERVER, "Your prisoner is " .. GetPlayerName(pid)) end

GetPlayerCarrying · IsPlayerCarried · the Carrying group of the index