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.
Syntax
Section titled “Syntax”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) |
Returns
Section titled “Returns”boolean - false for an unknown player or another name
Example
Section titled “Example”function Cuff(pid, on) SetPlayerScreenBlocked(pid, "inventory", on) SetPlayerScreenBlocked(pid, "character", on)endSee also
Section titled “See also”IsPlayerScreenBlocked · ClosePlayerScreens · the The game’s screens group of the index
