Create3DTextLabel

From SA-MP Wiki

Jump to: navigation, search
Create3DTextLabel was added in SA-MP 0.3a This function was added in SA-MP 0.3a and will not work in earlier versions!


Creates a 3D Text Label at a specific location in the world


Parameters:
(text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, virtualworld, testLOS)
text[]The initial text string.
colorThe text Color
xX-Coordinate
yY-Coordinate
zZ-Coordinate
DrawDistanceThe distance from where you are able to see the 3D Text Label
VirtualWorldThe virtual world in which you are able to see the 3D Text
testLOS0/1 Test the line-of-sight so this text can't be seen through objects


ReturnsThe ID of the newly created 3D Text Label


Image:32px-Circle-style-warning.png Important Note: If text[] is empty, the server/clients next to the text might crash!


Example:

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;
}
Image:32px-Ambox_warning_orange.png Note: Use color embedding for multiple colors in the text.


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