---
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/th/docs/scripting/functions/DisableNameTagLOS
language: th
---

# DisableNameTagLOS

## คำอธิบาย

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

| Name | Description |
| --- | --- |

## ตัวอย่าง

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

## บันทึก

warning

This can not be reversed until the server restarts.

## ฟังก์ชั่นที่เกี่ยวข้องกัน

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