GetPlayerScreen
Which of the game’s player screens a player has open.
As their game last reported it (OnPlayerScreenChange).
Syntax
Section titled “Syntax”GetPlayerScreen(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”string - "inventory", "character", "map", "codex", "journal" or "other"; nil = none
Example
Section titled “Example”if GetPlayerScreen(pid) == "inventory" then ClosePlayerScreens(pid) endSee also
Section titled “See also”OnPlayerScreenChange · the The game’s screens group of the index
