Skip to content

GetPlayerScreen

Which of the game’s player screens a player has open.

As their game last reported it (OnPlayerScreenChange).

GetPlayerScreen(pid)
Parameter Type
pid number the player

string - "inventory", "character", "map", "codex", "journal" or "other"; nil = none

if GetPlayerScreen(pid) == "inventory" then ClosePlayerScreens(pid) end

OnPlayerScreenChange · the The game’s screens group of the index