Create3DTextLabel
Description:
Function Create3DTextLabel creates a 3D Text Label at a specific location in the world.
Function Create3DTextLabel was added in 0.3a and will not work in earlier versions! |
drawdistance seems to be a lot smaller when spectating. |
|
|
Parameters:
(text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, virtualworld, testLOS)
string | text | The initial text string. |
int | color | The text Color, as an integer or hex in RGBA color format. |
float | X | X-Coordinate. |
float | Y | Y-Coordinate. |
float | Z | Z-Coordinate. |
float | DrawDistance | The distance from where you are able to see the 3D Text Label. |
int | virtualworld | The virtual world in which you are able to see the 3D Text. |
bool | testLOS | 0/1 Test the line-of-sight so this text can't be seen through objects. |
Return Values:
The ID of the newly created 3D Text Label, or INVALID_3DTEXT_ID if the 3D Text Label limit (MAX_3DTEXT_GLOBAL) was reached.
Examples:
public OnGameModeInit() { Create3DTextLabel("I'm at the coordinates:\n30.0, 40.0, 50.0", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0, 0); return 1; }
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- CreatePlayer3DTextLabel: Create A 3D text label for one player.
- Delete3DTextLabel: Delete a 3D text label.
- DeletePlayer3DTextLabel: Delete a player's 3D text label.
- Attach3DTextLabelToPlayer: Attach a 3D text label to a player.
- Attach3DTextLabelToVehicle: Attach a 3D text label to a vehicle.
- Update3DTextLabelText: Change the text of a 3D text label.
- UpdatePlayer3DTextLabelText: Change the text of a player's 3D text label.