ClosePlayerScreens
Closes the game’s player screens on a player’s screen - and the loot and trade screens.
Syntax
Section titled “Syntax”ClosePlayerScreens(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”boolean - false before the player is in the world or for a game that cannot
Example
Section titled “Example”function OnPlayerDamage(pid, attacker, damage) ClosePlayerScreens(pid) -- no rummaging in a bag under a swordendSee also
Section titled “See also”OpenPlayerScreen · SetPlayerScreenBlocked · the The game’s screens group of the index
