SetPlayerNameplateVisible
setPlayerNameplateVisible
Shows or hides a player's overhead nameplate for all observers.
Syntax
bool setPlayerNameplateVisible(int playerId, bool visible)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
playerId |
int |
yes | The connected player identifier. |
visible |
bool |
yes | Whether the overhead label should be rendered. |
Returns
Returns true when the state was accepted; otherwise returns false.
Examples
Hide a label while disguised:
setPlayerNameplateVisible(playerId, false)
Notes
- Available only in server-side resource scripts.
- Visibility is reliable, server-authoritative and late-join safe.