SA-MP Forums Archive
3d text label - 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: 3d text label (/showthread.php?tid=424143)



3d text label - Squirrel - 20.03.2013

Hello guys, can anyone show me example of how can I make 3d text attached to a vehicle showing car Health?

For example there is 3d text label attached on a hydra saying "500hp"


Re: 3d text label - Joshman543 - 20.03.2013

pawn Код:
vehicle_id = CreateVehicle( 520, X, Y, Z, 0, 120 );
    vehicle3Dtext[ vehicle_id ] = Create3DTextLabel( "500hp", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
    //Creating the Vehicle
    //Attaching Text Label To Vehicle
    Attach3DTextLabelToVehicle( vehicle3Dtext[ vehicle_id ] , vehicle_id, 0.0, 0.0, 2.0);