Przejdź do głównej zawartości

Update3DTextLabelText

Description

Updates a 3D Text Label text and color.

NameDescription
Text3D:textidThe 3D Text Label you want to update.
colourThe color the 3D Text Label should have from now on.
const text[]The new text which the 3D Text Label should have from now on.
OPEN_MP_TAGS:...Indefinite number of arguments of any tag.

Returns

This function does not return any specific values.

Examples

new Text3D:mylabel;

public OnGameModeInit()
{
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, 0xFF0000FF, "New text.");
return 1;
}

Notes

warning

If text[] is empty, the server/clients next to the text might crash! (Fixed in open.mp)