GetContainerUser
Who has a container open right now.
Syntax
Section titled “Syntax”GetContainerUser(key)| Parameter | Type | |
|---|---|---|
key |
string | the container’s level name |
Returns
Section titled “Returns”number - a pid; nil when nobody
Example
Section titled “Example”local who = GetContainerUser(key)if who then SendClientMessage(pid, COLOUR_RED, GetPlayerName(who) .. " is looking through it.") endSee also
Section titled “See also”OnPlayerOpenContainer · GetContainers · the Doors and containers group of the index
