How to get this vehicle coord? [REP +]
#1

Hi guys, I remember in the past there was an include or a single array who contains all the Vehicle Coordinates (for example Vehicle 2nd Passenger Door), I need this to create a dialog with some functions like:

1st Hey, choose your object model. -> 2nd Hey, choose where you want the object will be attached.

On the second response I'll get if the player want to attach on the trunk, on the doors or whatever part of the vehicle.

I need this for AttachDynamicObjectToVehicle.
Reply
#2

Is this what you're after?

https://sampwiki.blast.hk/wiki/GetVehicleModelInfo
https://sampwiki.blast.hk/wiki/Vehicle_information_types

Quote:

VEHICLE_MODEL_INFO_SIZE // Vehicle size
VEHICLE_MODEL_INFO_FRONTSEAT // Position of the front seat*
VEHICLE_MODEL_INFO_REARSEAT // Position of the rear seat*
VEHICLE_MODEL_INFO_PETROLCAP // Position of the fuel cap*
VEHICLE_MODEL_INFO_WHEELSFRONT // Position of the front wheels*
VEHICLE_MODEL_INFO_WHEELSREAR // Position of the rear wheels*
VEHICLE_MODEL_INFO_WHEELSMID // Position of the middle wheels (applies to vehicles with 3 axes)*
VEHICLE_MODEL_INFO_FRONT_BUMPER_Z // Height of the front bumper
VEHICLE_MODEL_INFO_REAR_BUMPER_Z // Height of the rear bumper

Reply
#3

pawn Код:
new Float:X, Float:Y, Float:Z;
GetVehicleModelInfo(411, VEHICLE_MODEL_INFO_SIZE, X, Y, Z); //Get the size of vehicle model 411 (Infernus)
printf("The infernus is %.1fm wide, %.1fm long and %.1fm high", X, Y, Z);
//Prints "The infernus is 2.3m wide, 5.7m long and 1.3m high" into the console
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)