This vehicle label doesnt show
#1

Ok guys,i've created my first NPC and it's working good.(The NPC is on a vehicle),but i've a problem.I've created a label to attach it on the NPC that is driving the vehicle so i made in this way:

pawn Код:
new Text3D:CrazyDriverText;
OnGameModeInit:

pawn Код:
CrazyDriverText = Create3DTextLabel( "[BOT]Crazy Driver", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
pawn Код:
Attach3DTextLabelToVehicle(CrazyDriverText, CrazyDriverVeh, 0.0, 0.0, 5.0);
CrazyDriverVeh refers to the vehicle that i've created for the NPC:

pawn Код:
new CrazyDriverVeh;
pawn Код:
CrazyDriverVeh = CreateVehicle(411, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);
Thanks for the great help,like always.
Reply
#2

pawn Код:
//OnGameModeInit

new Text3D:CrazyDriverText, CrazyDriverVeh;

CrazyDriverText = Create3DTextLabel( "[BOT]Crazy Driver", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
CrazyDriverVeh = CreateVehicle(411, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);

Attach3DTextLabelToVehicle(CrazyDriverText, CrazyDriverVeh, 0.0, 0.0, 2.0);
Are you using streamer?
Reply
#3

Yeah im using.Now it works.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)