SA-MP Forums Archive
How to get vehicle pos. (X,Y,Z)? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to get vehicle pos. (X,Y,Z)? (/showthread.php?tid=230855)



How to get vehicle pos. (X,Y,Z)? - Matej_ - 24.02.2011

I need some help, I want to add some objects to a car, but i don't know how should i get the car posistion.

Example: I need to put a object on car's roof or doors .. How should i get a pos. of the roof or doors?


Re: How to get vehicle pos. (X,Y,Z)? - MadeMan - 24.02.2011

If you mean AttachObjectToVehicle, then you just need to try which coordinates are best.

Try with 0.0, then 0.2, then 0.4 and so on.