3DTextLabel
#1

Hey Guys...Im trying to make some labels in game...But they will disappear after 1 sec.

This is my code:
PHP код:
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
        
label=CreatePlayer3DTextLabel(playerid,"test",COLOR_RED,x,y,z,40.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0);
Attach3DTextLabelToPlayer(labelplayerid0.00.00.7); 
Reply
#2

Attached Labels isn't visible to the player who has the label, They are only visible to other players. Try testing out the label to an NPC and attach it to them.
Reply
#3

Quote:
Originally Posted by JaKe Elite
Посмотреть сообщение
Attached Labels isn't visible to the player who has the label, They are only visible to other players. Try testing out the label to an NPC and attach it to them.
Srsly..Ofc its not i know that...Im not testing on myself :/...Its not showing for anyone.Only shows for one sec and after that its gone...And other players can see it but after one sec its gone...
Reply
#4

Anyone has any idea?
Reply
#5

Quote:

CreatePlayer3DTextLabel

The 3d text label is only shown for the player whose id you're passing to that function.

Instead try out Create3DTextLabel, it would be visible to all players.
Reply
#6

Quote:
Originally Posted by ShihabSoft
Посмотреть сообщение
The 3d text label is only shown for the player whose id you're passing to that function.

Instead try out Create3DTextLabel, it would be visible to all players.
Thanks.
Reply
#7

Use my tutorial, should work for you.

http://forum.sa-mp.com/showthread.ph...87#post3879787
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)