Skip to main content

Update3DTextLabelText

คำอธิบาย

Updates a 3D Text Label text and color.

NameDescription
Text3D:textidThe 3D Text Label you want to update.
colorThe color the 3D Text Label should have from now on.
text[]The new text which the 3D Text Label should have from now on.

ส่งคืน

This function does not return any specific values.

ตัวอย่าง

public OnGameModeInit()
{
new Text3D:mylabel;
mylabel = Create3DTextLabel("I'm at the coordinates:\n30.0,40.0,50.0",0x008080FF,30.0,40.0,50.0,40.0,0);
Update3DTextLabelText(mylabel, 0xFFFFFFFF, "New text.");
return 1;
}

บันทึก

warning

If text[] is empty, the server/clients next to the text might crash!

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