PDA

View Full Version : how to make 3d text on car?


niels44
17/12/2011, 09:43 AM
hey guys,
i was wondering how to make it that when u see a car u see above the car the name of the car or car health or somethin?
niels

vassilis
17/12/2011, 10:03 AM
Attach3DTextLabelToVehicle (http://wiki.sa-mp.com/wiki/Attach3DTextLabelToVehicle)


example from wiki
public OnGameModeInit ( )
{
new vehicle_id, Text3D:vehicle3Dtext;
//Creating TextLabel
vehicle3Dtext = Create3DTextLabel( "Example Text", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
//Creating the Vehicle
vehicle_id = CreateVehicle( 510, 0.0. 0.0, 15.0, 5, 0, 120 );
//Attaching Text Label To Vehicle
Attach

niels44
17/12/2011, 02:32 PM
ah thnx man

MaxSaint
17/12/2011, 02:37 PM
new Car, Text3D:text; // variables
text = Create3DTextLabel( "Mašinos tekstas", 0xFF0000AA, 0.0, 0.0,0.0, 50.0, 0, 1 ); // Create3D
Car = CreateVehicle(520, 2109.1763, 1503.0453, 32.2887, 82.2873, 0, 1, 60); // CreateVehicle
Attach3DTextLabelToVehicle( text, Car, 0.0, 0.0, 2.0);// Attach3D