Skip to content

GetContainerUser

Who has a container open right now.

GetContainerUser(key)
Parameter Type
key string the container’s level name

number - a pid; nil when nobody

local who = GetContainerUser(key)
if who then SendClientMessage(pid, COLOUR_RED, GetPlayerName(who) .. " is looking through it.") end

OnPlayerOpenContainer · GetContainers · the Doors and containers group of the index