Skip to content

SetPlayerScreenBlocked

Refuses one of the game’s player screens to a player - or allows it again.

Their key and the screens’ tab do not open a refused screen, and one open now closes. Set before the player’s level has loaded (in OnPlayerConnect) it holds from their first step. For their visit; a reload clears it.

SetPlayerScreenBlocked(pid, screen [, blocked])
Parameter Type
pid number the player
screen string "inventory", "character", "map", "codex" or "journal"
blocked boolean true (the default) refuses it, false allows it again (optional)

boolean - false for an unknown player or another name

function Cuff(pid, on)
SetPlayerScreenBlocked(pid, "inventory", on)
SetPlayerScreenBlocked(pid, "character", on)
end

IsPlayerScreenBlocked · ClosePlayerScreens · the The game’s screens group of the index