---
title: "SetPlayerChatBubble | open.mp"
description: "Creates a chat bubble above a player's name tag."
canonical: https://omp.itsneufox.com/th/docs/scripting/functions/SetPlayerChatBubble
language: th
---

# SetPlayerChatBubble

## คำอธิบาย

Creates a chat bubble above a player's name tag.

| Name | Description |
| --- | --- |
| playerid | The player which should have the chat bubble. |
| text\[\] | The text to display. |
| color | The text color |
| drawdistance | The distance from where players are able to see the chat bubble. |
| expiretime | The time in miliseconds the bubble should be displayed for. |

## ส่งคืน

This function does not return any specific values.

## ตัวอย่าง

```c
public OnPlayerText(playerid, text[])
{
    SetPlayerChatBubble(playerid, text, 0xFF0000FF, 100.0, 10000);
    return 1;
}
```

## บันทึก

หมายเหตุ

You can't see your own chatbubbles. The same applies to attached 3D text labels.

เคล็ดลับ

You can use color embedding for multiple colors in the message. Using '-1' as the color will make the text white (for the simple reason that -1, when represented in hexadecimal notation, is 0xFFFFFFFF).

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