ข้ามไปยังเนื้อหาหลัก

TextDrawGetColour

คำเตือน

ฟังก์ชันนี้ถูกเพิ่มใน omp v1.1.0.2612 และจะไม่ทำงานในเวอร์ชันก่อนหน้า!

Description​

Gets the text colour of a textdraw.

NameDescription
Text:textidThe ID of the textdraw to get the colour of.

Returns​

Returns the text colour of the textdraw.

Examples​

new Text:gMyTextdraw;

public OnGameModeInit()
{
gMyTextdraw = TextDrawCreate(123.0, 123.0, "Example");
TextDrawColour(gMyTextdraw, 0xFF0000FF);

new colour = TextDrawGetColour(gMyTextdraw);
// colour = 0xFF0000FF
return 1;
}