SA-MP Forums Archive
How to get the attucal X,Y,Z of the vehicle petrol cap? - 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 get the attucal X,Y,Z of the vehicle petrol cap? (/showthread.php?tid=331462)



How to get the attucal X,Y,Z of the vehicle petrol cap? - Kyle - 04.04.2012

I'm using GetVehicleModelInfo - But that only gets the native sizes of them.

How can I convert them into the real world x,y,z's?

Thanks


Re: How to get the attucal X,Y,Z of the vehicle petrol cap? - TzAkS. - 04.04.2012

GetVehicleModel is to get the model of vehicle,for position you may use
pawn Код:
new carid = GetPlayerVehicleID(playerid);
new Float:x,Float:y,Float:z;
GetVehiclePos(carid, x, y, z);



Re: How to get the attucal X,Y,Z of the vehicle petrol cap? - MP2 - 30.04.2012

You shouldn't post if you have no idea what you're talking about. He's talking about the new 0.3e function to get the offset of the petrol cap.


Re: How to get the attucal X,Y,Z of the vehicle petrol cap? - SuperViper - 30.04.2012

Add the vehicle position to the native sizes.


Re: How to get the attucal X,Y,Z of the vehicle petrol cap? - Pillhead2007 - 23.02.2014

new Float:fSet[3];
new modelid = GetVehicleModel(hitid);
GetVehicleModelInfo(modelid, VEHICLE_MODEL_INFO_PETROLCAP,fSet[0], fSet[1], fSet[2]);


Re: How to get the attucal X,Y,Z of the vehicle petrol cap? - MP2 - 23.02.2014

Quote:
Originally Posted by Pillhead2007
Посмотреть сообщение
new Float:fSet[3];
new modelid = GetVehicleModel(hitid);
GetVehicleModelInfo(modelid, VEHICLE_MODEL_INFO_PETROLCAP,fSet[0], fSet[1], fSet[2]);
This topic is 2 years old. I think he's probably worked it out by now.


Re: How to get the attucal X,Y,Z of the vehicle petrol cap? - AlonzoTorres - 23.02.2014

Just noticed the age of the thread, sorry for posting. Have to blame the one who posted before me though.


Re: How to get the attucal X,Y,Z of the vehicle petrol cap? - MP2 - 23.02.2014

Quote:
Originally Posted by AlonzoTorres
Посмотреть сообщение
Just noticed the age of the thread, sorry for posting. Have to blame the one who posted before me though.
The topic had 5 replies, and you didn't think to check if the question was answered?