CreatePlayer3DTextLabel attached to player, dissappears when player is out of stream range? - 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: CreatePlayer3DTextLabel attached to player, dissappears when player is out of stream range? (
/showthread.php?tid=379383)
CreatePlayer3DTextLabel attached to player, dissappears when player is out of stream range? -
ғαιιοцт - 21.09.2012
Hello,
I'm creating a text label with CreatePlayer3DTextLabel
and attach it to a player, and I've set the streaming range to 10000.0
However, I only see the text label when the player is close to me :/
Is this because he is streamed out of my client?
And is there any way to fix this?
Thanks

Fallout
Re: CreatePlayer3DTextLabel attached to player, dissappears when player is out of stream range? - HuSs3n - 21.09.2012
im not sure ,but try this
pawn Code:
Streamer_SetFloatData(STREAMER_TYPE_3D_TEXT_LABEL , YOUR_3D_TEXT_ID , E_STREAMER_STREAM_DISTANCE, 1000.0);
or
pawn Code:
Streamer_SetFloatData(STREAMER_TYPE_3D_TEXT_LABEL , YOUR_3D_TEXT_ID , E_STREAMER_DRAW_DISTANCE, 1000.0);
Re: CreatePlayer3DTextLabel attached to player, dissappears when player is out of stream range? -
ғαιιοцт - 21.09.2012
I'm not using a streamer for that :/
EDIT:
I temporarily fixed it be updating the 3dtext positions tot the player's position with a timer, when he is out of stream range.
But this is really not nice D:
I still need another solution for this.