Skip to content

GetPlayerCarrying

Whom or what the player carries.

GetPlayerCarrying(pid)
Parameter Type
pid number the carrier

string, number - the kind - "player", "corpse" or "actor" - and the id (a player’s id, or the entity id); nil when they carry nothing

local kind, id = GetPlayerCarrying(pid)
if kind == "player" then SendClientMessage(pid, COLOR_SERVER, "You carry " .. GetPlayerName(id)) end

GetPlayerCarriedBy · GetEntityCarrier · IsPlayerCarrying · the Carrying group of the index