GetVehicleModelInfo

GetVehicleModelInfo

Description:
Function GetVehicleModelInfo retrieve information about a specific vehicle model such as the size or position of seats.
Function GetVehicleModelInfo was added in 0.3e and will not work in earlier versions!


Parameters:
(vehiclemodel, infotype, &Float:X, &Float:Y, &Float:Z)
int vehiclemodel The vehicle model to get info of.
int infotype The type of information to retrieve.
float X A float to store the X value.
float Y A float to store the Y value.
float Z A float to store the Z value.


Return Values:
This function does not return any specific values.
  • The vehicle info is stored in the specified variables.


Examples:
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


Related Functions
The following functions may be useful, as they are related to this function in one way or another.