Update3DTextLabelText

Tags: 3dtextlabel

WARNING

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

Description

Updates a 3D Text Label text and color.

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

Returns

This function does not return any specific values.

Examples

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;
}

Notes

WARNING

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

  • Create3DTextLabel: Create a 3D text label.
  • Delete3DTextLabel: Delete a 3D text label.
  • Attach3DTextLabelToPlayer: Attach a 3D text label to a player.
  • Attach3DTextLabelToVehicle: Attach a 3D text label to a vehicle.
  • CreatePlayer3DTextLabel: Create A 3D text label for one player.
  • DeletePlayer3DTextLabel: Delete a player's 3D text label.
  • UpdatePlayer3DTextLabelText: Change the text of a player's 3D text label.