How to get the attucal X,Y,Z of the vehicle petrol cap?
#1

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
Reply
#2

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);
Reply
#3

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.
Reply
#4

Add the vehicle position to the native sizes.
Reply
#5

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

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.
Reply
#7

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

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?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)