# Character.setNameTag

Sets the name tag display value for the character

**Kind:** Function

**Environments:** Game

## Game

``` { .lua .api-signature }
character:setNameTag(
    name,
    color?,
    requiresLoS?,
    renderDistance?,
    fadeDistance?
)
```

[Open the full Game reference](../Game-Script-Environment/Userdata/Character.md#setnametag)

**Availability:** Client only

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `character` | [Character](../Game-Script-Environment/Userdata/Character.md) | The character. |
| `name` | string | The new name tag text value. |
| `color` *(optional)* | [Color](../Game-Script-Environment/Userdata/Color.md) | The color of the name. (defaults to white) |
| `requiresLoS` *(optional)* | boolean | Whether broken line of sight will hide the name tag. (Defaults to false) |
| `renderDistance` *(optional)* | number | Max distance the name tag will render in. (Defaults to 10000) |
| `fadeDistance` *(optional)* | number | Distance where fade out will start. (Defaults to 9500) |
