SA-MP Forums Archive
3dText - 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: 3dText (/showthread.php?tid=542963)



3dText - Fjclip99 - 23.10.2014

Hello,
Can someone make me a simple script that shows a text on top of the vehicle roof.
the vehicle id is GetPlayerVehicleID(playerid).
When player enters a vehicle, the text appears on top of the vehicle.
I need just those 2 - 3 lines that have Attach3DTextLabelToVehicle and those things...


Re: 3dText - PowerPC603 - 23.10.2014

If you enter the vehicle, get it's current coordinates and save them into variables.
Then create the 3DText and use the coordinates from the vehicle, just add some small value (2-5) to the y-value to position it slightly higher than the vehicle and you're done.


Re: 3dText - dominik523 - 23.10.2014

There's a really good example on the wiki about this:
https://sampwiki.blast.hk/wiki/Attach3DTextLabelToVehicle