முதன்மை உள்ளடக்கத்துக்குச் செல்லவும்

GetPlayer3DTextLabelDrawDistance

எச்சரிக்கை

செயல்பாடு என்பது omp v1.1.0.2612 பதிப்பில் சேர்க்கப்பட்டது. இது முந்தைய பதிப்புகளில் இயங்காது!

Description​

Gets the player's 3D text label draw distance.

NameDescription
playeridThe ID of the player.
PlayerText3D:textidThe ID of the player's 3D text label to get the draw distance of.

Returns​

Returns the draw distance of the player's 3D text label as float.

Examples​

new PlayerText3D:playerTextId;
new Float:x, Float:y, Float:z;
new Float:drawDistance;

GetPlayerPos(playerid, x, y, z);
playerTextId = CreatePlayer3DTextLabel(playerid, "Hello\nI'm at your position", 0x008080FF, x, y, z, 40.0);

drawDistance = GetPlayer3DTextLabelDrawDistance(playerid, playerTextId);
// drawDistance = 40.0