SetPlayerNametagShowing
Jump to navigation
Jump to search
setPlayerNametagShowing
Compatibility alias for setPlayerNameplateVisible.
Syntax
bool setPlayerNametagShowing(int playerId, bool visible)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
playerId |
int |
yes | The connected player identifier. |
visible |
bool |
yes | Whether the nameplate should be rendered. |
Returns
Returns the same value as setPlayerNameplateVisible.
Examples
Use the MTA-style compatibility name:
setPlayerNametagShowing(playerId, true)
Notes
- Available only in server-side resource scripts.
- New resources may use
setPlayerNameplateVisiblefor terminology consistent with the native UI.