Show 3d text label?
#1

I have a "Create3DTextLabel" and i only want people to see it if they are in range of point. How would i make that?

pawn Код:
if(IsPlayerInRangeOfPoint(i, 5, Houses[h][hExteriorX], Houses[h][hExteriorY], Houses[h][hExteriorZ]))
{
    // Show 3DTextLabel ??
}
And if i just create a new text label it doesn't show for some reason. So i guess i have to show it not create it :/
im confused. If you dont understand what im asking for then let me know
Reply
#2

what about this:
https://sampwiki.blast.hk/wiki/Create3DTextLabel

When you create a label you have to set the range in which players will see it..
you don't need to check for anything..
e.g.
pawn Код:
Create3DTextLabel("Text", xcoord, ycoord, zcoord, RANGE, -1, 0);
Reply
#3

Quote:
Originally Posted by Sascha
Посмотреть сообщение
what about this:
https://sampwiki.blast.hk/wiki/Create3DTextLabel

When you create a label you have to set the range in which players will see it..
you don't need to check for anything..
e.g.
pawn Код:
Create3DTextLabel("Text", xcoord, ycoord, zcoord, RANGE, -1, 0);
Thanks for your reply, but the "RANGE" i think that is how long away you can see the text. But im not sure.

EDIT: yes that "RANGE" is:

Quote:

DrawDistance The distance from where you are able to see the 3D Text Label

Reply
#4

yes.. you can set it for example to 100.00 and you'll see it in a distance of 100 (gta meters or whatever)..
or to 2.00 and you'll have to stand right infront of it...
Reply
#5

Quote:
Originally Posted by Sascha
Посмотреть сообщение
yes.. you can set it for example to 100.00 and you'll see it in a distance of 100 (gta meters or whatever)..
or to 2.00 and you'll have to stand right infront of it...
Im going to play around with it. Thanks for helping me i really appreciate it.
Reply
#6

tip a gta meter is +- the same as a real life meter. the truth is about 1.90/ 2.00 meters long...
Reply
#7

Is there a way to update a 3d text label without having to type in new text?
so it just updates the id.
https://sampwiki.blast.hk/wiki/Update3DTextLabelText

Quote:
Originally Posted by legodude
Посмотреть сообщение
tip a gta meter is +- the same as a real life meter. the truth is about 1.90/ 2.00 meters long...
Thanks thats usefull :P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)