[HELP] Create3DTextLabel
#1

Hello,
I've a problem with 3DTextLabel.
The problem is that when I'm in game it doesn't show me the 3DTextLabels
P.s.: When I compile the GM , it doesn't give me errors or warnings!
An example of a string taken from my GM :
Код:
Create3DTextLabel("City Hall", 0xFFFFFFFF, 2131.8508,-1151.3190,24.0610, 30, 0, 0);
Sorry for my bad English!
Reply
#2

Try

Код:
Create3DTextLabel("City Hall", 0xFFFFFFFF, 2131.8508,-1151.3190,24.0610, 30, 10, 1);
Here ::

https://sampwiki.blast.hk/wiki/CreatePlayer3DTextLabel

There is a little bit of info on how to use it
Reply
#3

"10" is the interior, I think. In fact it doesn't work з__з
Reply
#4

pawn Код:
Create3DTextLabel( "City Hall", 0xFFFFFFFF, 2131.8508,-1151.3190,24.0610, 50.0, 0 ); // TestLOS is optional, so this code should work.
Reply
#5

Doesn't work!
Reply
#6

At what virtual world is your gamemode? Maybe that's the problem.

EDIT: Try:
pawn Код:
Create3DTextLabel( "City Hall", 0xFFFFFFFF, 2131.8508,-1151.3190,24.0610, 50.0, -1 );
Reply
#7

Parameters of Create3DTextLabel:

Код:
(text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, virtualworld, testLOS)
->>
Create3DTextLabel("City Hall", 0xFFFFFFFF, 2131.8508,-1151.3190,24.0610, 30, 0, 0);
Is this 3D label meant to be shown in a different virtual world? If yes, change the first "0" to your virtual world ID. Should fix the problem
Reply
#8

Quote:
Originally Posted by Jakku
Посмотреть сообщение
Parameters of Create3DTextLabel:

Код:
(text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, virtualworld, testLOS)
->>
Create3DTextLabel("City Hall", 0xFFFFFFFF, 2131.8508,-1151.3190,24.0610, 30, 0, 0);
Is this 3D label meant to be shown in a different virtual world? If yes, change the first "0" to your virtual world ID. Should fix the problem
TestLOS is optional, and I had some problems when setting it to 0, so I just removed the param, and it worked for me.

The problem is the VirtualWorld probably.
Reply
#9

Quote:
Originally Posted by Mean
Посмотреть сообщение
The problem is the VirtualWorld probably.
That's what I just said. TestLOS configures that can the label be seen through objects, not anything else. It shouldn't cause any problems.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)