3DTextLabel - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 3DTextLabel (
/showthread.php?tid=633994)
3DTextLabel -
Peveral - 11.05.2017
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(label, playerid, 0.0, 0.0, 0.7);
Re: 3DTextLabel -
JaKe Elite - 11.05.2017
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.
Re: 3DTextLabel -
Peveral - 11.05.2017
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...
Re: 3DTextLabel -
Peveral - 12.05.2017
Anyone has any idea?
Re: 3DTextLabel -
ShihabSoft - 12.05.2017
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.
Re: 3DTextLabel -
Peveral - 13.05.2017
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.
Re: 3DTextLabel -
xLucy - 14.05.2017
Use my tutorial, should work for you.
http://forum.sa-mp.com/showthread.ph...87#post3879787