IsPlayerNameplateIdVisible
Jump to navigation
Jump to search
isPlayerNameplateIdVisible
AVAILABLE FROM UPDATE 0.1.3
This function is available in G1R:MP 0.1.3 and later. The contract below includes the compatibility guarantees introduced in that update.
Reads the global numeric-ID visibility policy before per-observer overrides.
Syntax
bool isPlayerNameplateIdVisible(int playerId)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
playerId |
int |
yes | The connected player identifier. |
Returns
Returns the global ID visibility boolean (default true), or false for an invalid player/service. It does not report whether a nameplate is currently rendered.
Examples
Read global ID policy:
local visible = isPlayerNameplateIdVisible(playerId)
Notes
- Available only in server-side resource scripts.
- Use isPlayerNameplateIdVisibleFor or getPlayerNameplateStateFor for a particular observer. A globally visible ID can still be hidden because the whole nameplate is hidden.
- PascalCase alias:
IsPlayerNameplateIdVisible.