3D text help
#1

Hello Im trying to put 3D texts on cars in my GM I use this
Quote:

{


new Text3D:vehicle3Dtext;
vehicle3Dtext = Create3DTextLabel( "MW-DM", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
for(new i=0; i<MAX_VEHICLES; i++)
Attach3DTextLabelToVehicle( vehicle3Dtext, i, 0.0, 0.0, 2.0);

but when I get in game to test I dont see it, please help
Reply
#2

pawn Код:
new Text3D:vehicle3Dtext;
vehicle3Dtext = Create3DTextLabel("MW-DM", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1);
for(new i=0; i<MAX_VEHICLES; i++)
{
Attach3DTextLabelToVehicle(vehicle3Dtext, i, 0.0, 0.0, 2.0);
}
Try it like this. Otherwise the loop does nothing.
Reply
#3

I tested it and still nothing
wow i feal stupid im mising an include arnt I? what is the include for 3D texts?
Reply
#4

<a_samp>
hehe....
Reply
#5

no i got that -.- but idk what im doing wrong its just not working for me
Reply
#6

Quote:
Originally Posted by darkknight123
Посмотреть сообщение
no i got that -.- but idk what im doing wrong its just not working for me
Where are you placing this in your script?
Reply
#7

Under public OnGameModeInit()
Reply
#8

Quote:
Originally Posted by darkknight123
Посмотреть сообщение
no i got that -.- but idk what im doing wrong its just not working for me
I typed that in response to:
Quote:
Originally Posted by darkknight123
Посмотреть сообщение
I tested it and still nothing
wow i feal stupid im mising an include arnt I? what is the include for 3D texts?
And obviously it was a joke.
All the functions said previously are included by default.

Place the code at the end of ongamemodeinit, AFTER the vehicle spawns, otherwise it won't be putting the textdraw anywhere.
Reply
#9

You know what John_F? I think you just solved also one of my problems xD
Already thought about how he couldn't include a_samp but uses basic functions.
Reply
#10

hmhmhm I'v tryed and still nothing I'v added it right before the return 1; on the end of OnGamemodeint and still wont work :/
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)