[Help] Attach3DTextLabelToVehicle
#1

Hey guys, I'm quiet new in the 3dtextlabel but i have got most of my things to work. but not this time.
I where trying to add the license plates for my vehicles but i doesn't appear in game.

No Error or warnings.

Here is my code that i use and it loads the cars from a *.cfg file.
I also wonder how i could do to make the license plate like "2BBM299" for exampel because i don't know is only %s should be work because its both text and numbers.

Код:
for(new h = 192; h < sizeof(CarInfo); h++)
	{
		format(PropertyString,sizeof(CarString),"%s", CarInfo[h][cLicense]);
		CarLabel[h] = Create3DTextLabel(CarString ,0x00FF00FF,CarInfo[h][cLocationx], CarInfo[h][cLocationy], CarInfo[h][cLocationz],0, 1);
		Attach3DTextLabelToVehicle( CarLabel[h], h, 0.0, 0.0, 2.0);
	}
Help anyone.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)