---
title: "DisableNameTagLOS | open.mp"
description: "Disables the nametag Line-Of-Sight checking so that players can see nametags through objects."
canonical: https://omp.itsneufox.com/fr/docs/scripting/functions/DisableNameTagLOS
language: fr
---

# DisableNameTagLOS

## Description

Disables the nametag Line-Of-Sight checking so that players can see nametags through objects.

## Returns

This function does not return any specific values.

## Examples

```c
public OnGameModeInit()
{
    DisableNameTagLOS();
    return 1;
}
```

## Notes

attention

This can not be reversed until the server restarts.

astuce

You can also disable nametags Line-Of-Sight via [config.json](https://omp.itsneufox.com/fr/docs/server/config.json)

```json
"use_nametag_los": false,
```

## Related Functions

-   [ShowNameTags](https://omp.itsneufox.com/fr/docs/scripting/functions/ShowNameTags): Set nametags on or off.
-   [ShowPlayerNameTagForPlayer](https://omp.itsneufox.com/fr/docs/scripting/functions/ShowPlayerNameTagForPlayer): Show or hide a nametag for a certain player.
