CreatePlayer3DTextLabel

From SA-MP Wiki

Jump to: navigation, search

CreatePlayer3DTextLabel


Warning: This function was added in SA-MP version 0.3. It is not available in previous versions.


Creates a 3D Text Label only for a specific player

.

Parameters:
(playerid, text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, attachedplayer, attachedvehicle, testLOS)
playeridThe player which should see the newly created 3DText Label.
text[]The initial text. Its used like a normal string.
colorThe text Color
xX-Coordinate/X-Offset if attached
yY-Coordinate/Y-Offset if attached
zZ-Coordinate/Z-Offset if attached
DrawDistanceThe distance where you are able to see the 3D Text Label
attachedplayerThe player you want to attach the 3D Text Label to. (None: INVALID_PLAYER_ID)
attachedvehicleThe vehicle you want to attach the 3D Text Label to. (None: INVALID_VEHICLE_ID)
testLOS0/1 Test the line-of-sight so this text can't be seen through walls


ReturnsThe ID for the newly created Player 3D Text Label


Example:

if(strcmp(cmd, "/playerlabel", true) == 0)
{
    new PlayerText3D:playertextid;
    new Float:X, Float:Y, Float:Z;
    GetPlayerPos( playerid, X, Y, Z );
    playertextid = CreatePlayer3DTextLabel(playerid,"Hello\nI'm at your position",0x008080FF,X,Y,Z,40.0);
    return 1;
}

Related Functions

The following functions might be useful as well, as they're related to this function in one way or another.


Personal tools
In other languages