27.01.2014, 11:35
Hi,
I want to find the position of the trunk of the vehicle, i use GetVehicleModelInfo, i tested VEHICLE_MODEL_INFO_WHEELSREAR, but it's not very good...
http://www.upimg.fr/ih/07rt.png
How to get a better position ?
Thanks
I want to find the position of the trunk of the vehicle, i use GetVehicleModelInfo, i tested VEHICLE_MODEL_INFO_WHEELSREAR, but it's not very good...
http://www.upimg.fr/ih/07rt.png
PHP код:
#define posArr{%0} %0[0],%0[1],%0[2]
GetVehiclePos(ii, posArr{ vPos });
GetVehicleModelInfo(vInfo[ii][veh__model], VEHICLE_MODEL_INFO_WHEELSREAR, posArr{ vInfoPos } );
CreatePickup(1239, 0, (vPos[0] + vInfoPos[0]), (vPos[1] + vInfoPos[1]), (vPos[2] + vInfoPos[2]), -1);
Thanks