From SA-MP Wiki

Jump to: navigation, search

Update3DTextLabelText was added in SA-MP 0.3a This function was added in SA-MP 0.3a and will not work in earlier versions!


Updates a 3D Text Label text and color.

(Text3D:id, color, text[])
Text3D:idThe 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.

Return Values:

This function does not return any specific values.



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

Example Usage:

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;

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

Personal tools
In other languages