Skip to main content

TextDrawColor

คำอธิบาย​

Sets the text color of a textdraw

NameDescription
textThe ID of the textdraw to change the color of..
colorThe color to set the textdraw to.

ส่งคืน​

This function does not return any specific values.

ตัวอย่าง​

new Text:Example;

public OnGameModeInit()
{
Example = TextDrawCreate(123.0, 123.0, "Example");
TextDrawColor(Example, 0x000000FF);
return 1;
}

บันทึก​

หมายเหตุ

If the TextDraw is already shown, it must be re-shown (TextDrawShowForAll/TextDrawShowForPlayer) for the changes of this function to take effect.

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