SA-MP Forums Archive
how to make 3d text on car? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: how to make 3d text on car? (/showthread.php?tid=304158)



how to make 3d text on car? - niels44 - 17.12.2011

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


Re: how to make 3d text on car? - vassilis - 17.12.2011

Attach3DTextLabelToVehicle


example from wiki
pawn Код:
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



Re: how to make 3d text on car? - niels44 - 17.12.2011

ah thnx man


Re: how to make 3d text on car? - MaxSaint - 17.12.2011

Код:
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